[vlc-commits] wasapi: fix fallthrough warnings

Rémi Denis-Courmont git at videolan.org
Sun Apr 14 09:17:59 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 09:55:13 2019 +0300| [1ece990f0792d92dae59ceb85970c204d761cc24] | committer: Rémi Denis-Courmont

wasapi: fix fallthrough warnings

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

 modules/audio_output/wasapi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 74d5239bd7..03ba2a46ea 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -350,12 +350,14 @@ static void vlc_ToWave(WAVEFORMATEXTENSIBLE *restrict wf,
     {
         case VLC_CODEC_FL64:
             audio->i_format = VLC_CODEC_FL32;
+            /* fall through */
         case VLC_CODEC_FL32:
             wf->SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;
             break;
 
         case VLC_CODEC_U8:
             audio->i_format = VLC_CODEC_S16N;
+            /* fall through */
         case VLC_CODEC_S16N:
             wf->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
             break;



More information about the vlc-commits mailing list