call _kill functions instead of _unlink since the latter should only be called be...
authorLennart Poettering <lennart@poettering.net>
Thu, 12 Feb 2009 02:39:56 +0000 (03:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 12 Feb 2009 02:39:56 +0000 (03:39 +0100)
src/pulsecore/sink.c
src/pulsecore/source.c

index eadef80..4f39d67 100644 (file)
@@ -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);
         }
     }
index c31c89c..0009d85 100644 (file)
@@ -458,7 +458,7 @@ void pa_source_move_all_finish(pa_source *s, pa_queue *q, pa_bool_t save) {
 
     while ((o = PA_SOURCE_OUTPUT(pa_queue_pop(q)))) {
         if (pa_source_output_finish_move(o, s, save) < 0)
-            pa_source_output_unlink(o);
+            pa_source_output_kill(o);
 
         pa_source_output_unref(o);
     }
@@ -473,7 +473,7 @@ void pa_source_move_all_fail(pa_queue *q) {
 
     while ((o = PA_SOURCE_OUTPUT(pa_queue_pop(q)))) {
         if (pa_hook_fire(&o->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_MOVE_FAIL], o) == PA_HOOK_OK) {
-            pa_source_output_unlink(o);
+            pa_source_output_kill(o);
             pa_source_output_unref(o);
         }
     }