core: introduce pa_{sink_input|source_output}_fail_move()

This commit is contained in:
Lennart Poettering 2009-08-15 00:03:50 +02:00
parent 7891f964e4
commit 0989be13f6
6 changed files with 52 additions and 12 deletions

View file

@ -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);