mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
module-combine-sink: Suspend while unloading to fix crash moving sinks
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/756>
This commit is contained in:
parent
37c72c2072
commit
0cbbc408ae
1 changed files with 3 additions and 0 deletions
|
|
@ -1733,6 +1733,9 @@ void pa__done(pa_module*m) {
|
|||
if (!(u = m->userdata))
|
||||
return;
|
||||
|
||||
if (u->sink && PA_SINK_IS_LINKED(u->sink->state))
|
||||
pa_sink_suspend(u->sink, true, PA_SUSPEND_UNAVAILABLE);
|
||||
|
||||
pa_strlist_free(u->unlinked_slaves);
|
||||
|
||||
if (u->sink_put_slot)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue