[vlc-commits] audiotrack: default case can't happen here

Thomas Guillem git at videolan.org
Fri Oct 21 09:41:59 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 21 09:40:13 2016 +0200| [0685488cb9329e874ac4a59dd0dde993e51ee876] | committer: Thomas Guillem

audiotrack: default case can't happen here

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0685488cb9329e874ac4a59dd0dde993e51ee876
---

 modules/audio_output/audiotrack.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/audiotrack.c b/modules/audio_output/audiotrack.c
index 6c21bb5..d0b598b 100644
--- a/modules/audio_output/audiotrack.c
+++ b/modules/audio_output/audiotrack.c
@@ -876,10 +876,11 @@ AudioTrack_Create( JNIEnv *env, audio_output_t *p_aout,
         case AOUT_CHAN_LEFT:
             i_channel_config = jfields.AudioFormat.CHANNEL_OUT_MONO;
             break;
-        default:
         case AOUT_CHANS_STEREO:
             i_channel_config = jfields.AudioFormat.CHANNEL_OUT_STEREO;
             break;
+        default:
+            vlc_assert_unreachable();
     }
 
     i_min_buffer_size = JNI_AT_CALL_STATIC_INT( getMinBufferSize, i_rate,



More information about the vlc-commits mailing list