mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
core: introduce pa_{sink_input|source_output}_fail_move()
This commit is contained in:
parent
7891f964e4
commit
0989be13f6
6 changed files with 52 additions and 12 deletions
|
|
@ -649,7 +649,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_kill(i);
|
||||
pa_sink_input_fail_move(i);
|
||||
|
||||
pa_sink_input_unref(i);
|
||||
}
|
||||
|
|
@ -665,10 +665,8 @@ void pa_sink_move_all_fail(pa_queue *q) {
|
|||
pa_assert(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_kill(i);
|
||||
pa_sink_input_unref(i);
|
||||
}
|
||||
pa_sink_input_fail_move(i);
|
||||
pa_sink_input_unref(i);
|
||||
}
|
||||
|
||||
pa_queue_free(q, NULL, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue