sink: Unlink monitor source before unlinking sink
authorGeorg Chini <georg@chini.tk>
Sun, 31 Jan 2021 19:08:11 +0000 (20:08 +0100)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 1 Feb 2021 16:03:46 +0000 (16:03 +0000)
commit12cf6da242d9cbca37f8fc541d6261f165f181d2
treef208f98d5211f335713d7fe27b428dc0d3ec2e03
parent597a1eb1ba02891c79132319f3d2beb2b5cbc108
sink: Unlink monitor source before unlinking sink

Unlinking the monitor source after unlinking the sink leads to a crash when the monitor
source is master of a virtual source. Changing the unlink order fixes the problem.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/493>
src/pulsecore/sink.c