[vlc-commits] aout:winstore: fix compilation

Steve Lhomme git at videolan.org
Tue Mar 5 13:03:47 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar  5 08:10:21 2019 +0100| [66e0244cd53d76e3fd07fc52596c5e95b955e665] | committer: Steve Lhomme

aout:winstore: fix compilation

Since 6429b8ea8337ab284e3d3f449775ab4cf9ebce7b

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

 modules/audio_output/winstore.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/modules/audio_output/winstore.c b/modules/audio_output/winstore.c
index 22f5c4614e..8420c3a6bc 100644
--- a/modules/audio_output/winstore.c
+++ b/modules/audio_output/winstore.c
@@ -274,13 +274,14 @@ static int DeviceSelect(audio_output_t *aout, const char* psz_device)
     if( psz_device == NULL )
         return VLC_EGENERIC;
     char* psz_end;
+    aout_sys_t* sys = aout->sys;
     intptr_t ptr = strtoll( psz_device, &psz_end, 16 );
     if ( *psz_end != 0 )
         return VLC_EGENERIC;
-    if (aout->sys->client == (IAudioClient*)ptr)
+    if (sys->client == (IAudioClient*)ptr)
         return VLC_SUCCESS;
-    aout->sys->client = (IAudioClient*)ptr;
-    var_SetAddress( vlc_object_parent(aout), "winstore-client", aout->sys->client );
+    sys->client = (IAudioClient*)ptr;
+    var_SetAddress( vlc_object_parent(aout), "winstore-client", sys->client );
     aout_RestartRequest( aout, AOUT_RESTART_OUTPUT );
     return VLC_SUCCESS;
 }
@@ -295,9 +296,9 @@ static int Open(vlc_object_t *obj)
 
     aout->sys = sys;
     sys->stream = NULL;
-    aout->sys->client = var_CreateGetAddress( vlc_object_parent(aout), "winstore-client" );
-    if (aout->sys->client != NULL)
-        msg_Dbg( aout, "Reusing previous client: %p", aout->sys->client );
+    sys->client = var_CreateGetAddress( vlc_object_parent(aout), "winstore-client" );
+    if (sys->client != NULL)
+        msg_Dbg( aout, "Reusing previous client: %p", sys->client );
     aout->start = Start;
     aout->stop = Stop;
     aout->time_get = TimeGet;



More information about the vlc-commits mailing list