mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-14 05:33:55 -04:00
call _kill functions instead of _unlink since the latter should only be called be the stream implementor
This commit is contained in:
parent
f0cc23d6e5
commit
1837a96e64
2 changed files with 4 additions and 4 deletions
|
|
@ -519,7 +519,7 @@ void pa_sink_move_all_finish(pa_sink *s, pa_queue *q, pa_bool_t save) {
|
|||
|
||||
while ((i = PA_SINK_INPUT(pa_queue_pop(q)))) {
|
||||
if (pa_sink_input_finish_move(i, s, save) < 0)
|
||||
pa_sink_input_unlink(i);
|
||||
pa_sink_input_kill(i);
|
||||
|
||||
pa_sink_input_unref(i);
|
||||
}
|
||||
|
|
@ -534,7 +534,7 @@ void pa_sink_move_all_fail(pa_queue *q) {
|
|||
|
||||
while ((i = PA_SINK_INPUT(pa_queue_pop(q)))) {
|
||||
if (pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE_FAIL], i) == PA_HOOK_OK) {
|
||||
pa_sink_input_unlink(i);
|
||||
pa_sink_input_kill(i);
|
||||
pa_sink_input_unref(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue