Skip to content
Snippets Groups Projects
Commit 99905796 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

(cherry picked from commit e94b04c8)
Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>
parent 95cce99f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment