mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-29 11:58:24 +02: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
This commit is contained in:
parent
65364b8338
commit
e94b04c8f8
@ -208,6 +208,8 @@ static void Stop (audio_output_t *aout)
|
|||||||
{
|
{
|
||||||
aout_sys_t *sys = aout->sys;
|
aout_sys_t *sys = aout->sys;
|
||||||
|
|
||||||
|
aout->volume_set = NULL;
|
||||||
|
aout->mute_set = NULL;
|
||||||
sio_close (sys->hdl);
|
sio_close (sys->hdl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user