Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!197sndio: fix crash when volume is adjusted while stopped
Pipeline #103685 passed with stage
in 17 minutes and 20 seconds
......@@ -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