[vlc-commits] [Git][videolan/vlc][master] sndio: fix crash when volume is adjusted while stopped

Thomas Guillem gitlab at videolan.org
Sat Jun 5 14:28:49 UTC 2021



Thomas Guillem pushed to branch master at VideoLAN / VLC


Commits:
e94b04c8 by Brad Smith at 2021-06-05T13:56:07+00:00
sndio: fix crash when volume is adjusted while stopped

Set volume/mute function pointers when handle is freed, to ensure
sio_setvol() is not called on a freed handle. Fixes crashes when volume
is adjusted while playback is stopped.

Fixes #25796

- - - - -


1 changed file:

- modules/audio_output/sndio.c


Changes:

=====================================
modules/audio_output/sndio.c
=====================================
@@ -208,6 +208,8 @@ static void Stop (audio_output_t *aout)
 {
     aout_sys_t *sys = aout->sys;
 
+    aout->volume_set = NULL;
+    aout->mute_set = NULL;
     sio_close (sys->hdl);
 }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e94b04c8f867382ce6835254d29ee54fe855c686

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e94b04c8f867382ce6835254d29ee54fe855c686
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list