[vlc-commits] wasapi: reorder code

Rémi Denis-Courmont git at videolan.org
Wed Jul 17 20:45:20 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jul 17 21:32:15 2019 +0300| [c42efae068ee82c7a1f62c113eebebdc75a908d5] | committer: Rémi Denis-Courmont

wasapi: reorder code

Non-functional change.

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

 modules/audio_output/wasapi.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 9225c987a1..310e90e09d 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -455,6 +455,15 @@ static unsigned vlc_CheckWaveOrder (const WAVEFORMATEX *restrict wf,
     return aout_CheckChannelReorder(chans_in, chans_out, mask, table);
 }
 
+static void Stop(aout_stream_t *s)
+{
+    aout_stream_sys_t *sys = s->sys;
+
+    IAudioClient_Stop(sys->client); /* should not be needed */
+    IAudioClient_Release(sys->client);
+
+    free(sys);
+}
 
 static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict pfmt,
                      const GUID *sid)
@@ -631,16 +640,6 @@ error:
     return hr;
 }
 
-static void Stop(aout_stream_t *s)
-{
-    aout_stream_sys_t *sys = s->sys;
-
-    IAudioClient_Stop(sys->client); /* should not be needed */
-    IAudioClient_Release(sys->client);
-
-    free(sys);
-}
-
 vlc_module_begin()
     set_shortname("WASAPI")
     set_description(N_("Windows Audio Session API output"))



More information about the vlc-commits mailing list