Commit e94b04c8 authored by Brad Smith's avatar Brad Smith Committed by Thomas Guillem
Browse files

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
parent 65364b83
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment