mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
follow _unlink() changes from sink-input
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2355 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d2da344fee
commit
3167e0f999
1 changed files with 6 additions and 6 deletions
|
|
@ -273,13 +273,13 @@ void pa_source_output_unlink(pa_source_output*o) {
|
|||
if (pa_idxset_remove_by_data(o->source->outputs, o, NULL))
|
||||
pa_source_output_unref(o);
|
||||
|
||||
if (linked) {
|
||||
pa_asyncmsgq_send(o->source->asyncmsgq, PA_MSGOBJECT(o->source), PA_SOURCE_MESSAGE_REMOVE_OUTPUT, o, 0, NULL);
|
||||
source_output_set_state(o, PA_SOURCE_OUTPUT_UNLINKED);
|
||||
pa_source_update_status(o->source);
|
||||
} else
|
||||
update_n_corked(o, PA_SOURCE_OUTPUT_UNLINKED);
|
||||
o->state = PA_SOURCE_OUTPUT_UNLINKED;
|
||||
|
||||
if (linked)
|
||||
if (o->source->asyncmsgq)
|
||||
pa_asyncmsgq_send(o->source->asyncmsgq, PA_MSGOBJECT(o->source), PA_SOURCE_MESSAGE_REMOVE_OUTPUT, o, 0, NULL);
|
||||
|
||||
reset_callbacks(o);
|
||||
|
||||
if (linked) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue