mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
make sure we don't call pa_source_post() for a monitor source after it was unlinked
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1857 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
ca717643ee
commit
8fdf054e68
1 changed files with 2 additions and 2 deletions
|
|
@ -216,11 +216,11 @@ void pa_sink_unlink(pa_sink* s) {
|
||||||
j = i;
|
j = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sink_set_state(s, PA_SINK_UNLINKED);
|
||||||
|
|
||||||
if (s->monitor_source)
|
if (s->monitor_source)
|
||||||
pa_source_unlink(s->monitor_source);
|
pa_source_unlink(s->monitor_source);
|
||||||
|
|
||||||
sink_set_state(s, PA_SINK_UNLINKED);
|
|
||||||
|
|
||||||
s->get_latency = NULL;
|
s->get_latency = NULL;
|
||||||
s->get_volume = NULL;
|
s->get_volume = NULL;
|
||||||
s->set_volume = NULL;
|
s->set_volume = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue