summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <git@arunraghavan.net>2016-01-11 12:52:10 +0530
committerArun Raghavan <git@arunraghavan.net>2016-01-12 08:40:51 +0530
commit2ae2dab307206b393f0ada6c02464f5416731b3f (patch)
treeadcf70540c027a06e325ca9dffafda881e42cc81
parent7c1a5d61597b8a7b762f8295c7d791942dba3fb5 (diff)
sink-input, source-output: Add some debug output on start_move()v7.99.2
-rw-r--r--src/pulsecore/sink-input.c2
-rw-r--r--src/pulsecore/source-output.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index 539ae1756..8ec63b5da 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -1580,6 +1580,8 @@ int pa_sink_input_start_move(pa_sink_input *i) {
if ((r = pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE_START], i)) < 0)
return r;
+ pa_log_debug("Starting to move sink input %u from '%s'", (unsigned) i->index, i->sink->name);
+
/* Kill directly connected outputs */
while ((o = pa_idxset_first(i->direct_outputs, NULL))) {
pa_assert(o != p);
diff --git a/src/pulsecore/source-output.c b/src/pulsecore/source-output.c
index 9000972ac..c73c54866 100644
--- a/src/pulsecore/source-output.c
+++ b/src/pulsecore/source-output.c
@@ -1230,6 +1230,8 @@ int pa_source_output_start_move(pa_source_output *o) {
if ((r = pa_hook_fire(&o->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_MOVE_START], o)) < 0)
return r;
+ pa_log_debug("Starting to move source output %u from '%s'", (unsigned) o->index, o->source->name);
+
origin = o->source;
pa_idxset_remove_by_data(o->source->outputs, o, NULL);