ladspa-sink: do not call pa_sink_suspend if PA_SINK_IS_LINKED is false
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Sun, 27 Dec 2020 12:25:40 +0000 (15:25 +0300)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 4 Jan 2021 12:19:07 +0000 (12:19 +0000)
commitb76d835e590b8aa10d724c857ea7d135ba53d94e
treeface8001f4c0b536ef5bedb722f70a83aaa5094b
parent81ebd8ba3f644e95a7f858ede9fc65d340ab06e2
ladspa-sink: do not call pa_sink_suspend if PA_SINK_IS_LINKED is false

While module-ladspa-sink is still being loaded and before pa_sink_put() is
called there may be an attempt to reconfigure master sink when avoid-resampling
is true. This breaks attempting to suspend ladspa-sink which is still in INIT
state.

Fix this by skipping pa_sink_suspend if PA_SINK_IS_LINKED is false.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/445>
src/modules/module-ladspa-sink.c