mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sink-input, source-output: Add some debug output on start_move()
This commit is contained in:
parent
7c1a5d6159
commit
2ae2dab307
2 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
if ((r = pa_hook_fire(&i->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE_START], i)) < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
pa_log_debug("Starting to move sink input %u from '%s'", (unsigned) i->index, i->sink->name);
|
||||||
|
|
||||||
/* Kill directly connected outputs */
|
/* Kill directly connected outputs */
|
||||||
while ((o = pa_idxset_first(i->direct_outputs, NULL))) {
|
while ((o = pa_idxset_first(i->direct_outputs, NULL))) {
|
||||||
pa_assert(o != p);
|
pa_assert(o != p);
|
||||||
|
|
|
||||||
|
|
@ -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)
|
if ((r = pa_hook_fire(&o->core->hooks[PA_CORE_HOOK_SOURCE_OUTPUT_MOVE_START], o)) < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
pa_log_debug("Starting to move source output %u from '%s'", (unsigned) o->index, o->source->name);
|
||||||
|
|
||||||
origin = o->source;
|
origin = o->source;
|
||||||
|
|
||||||
pa_idxset_remove_by_data(o->source->outputs, o, NULL);
|
pa_idxset_remove_by_data(o->source->outputs, o, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue