mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
minor optimization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1886 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6cfb09698a
commit
e04a8576bb
1 changed files with 3 additions and 2 deletions
|
|
@ -690,7 +690,7 @@ pa_resample_method_t pa_sink_input_get_resample_method(pa_sink_input *i) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int pa_sink_input_move_to(pa_sink_input *i, pa_sink *dest, int immediately) {
|
int pa_sink_input_move_to(pa_sink_input *i, pa_sink *dest, int immediately) {
|
||||||
pa_resampler *new_resampler = NULL;
|
pa_resampler *new_resampler;
|
||||||
pa_sink *origin;
|
pa_sink *origin;
|
||||||
pa_usec_t silence_usec = 0;
|
pa_usec_t silence_usec = 0;
|
||||||
pa_sink_input_move_info info;
|
pa_sink_input_move_info info;
|
||||||
|
|
@ -739,7 +739,8 @@ int pa_sink_input_move_to(pa_sink_input *i, pa_sink *dest, int immediately) {
|
||||||
pa_log_warn("Unsupported resampling operation.");
|
pa_log_warn("Unsupported resampling operation.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
|
new_resampler = NULL;
|
||||||
|
|
||||||
pa_hook_fire(&i->sink->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE], i);
|
pa_hook_fire(&i->sink->core->hooks[PA_CORE_HOOK_SINK_INPUT_MOVE], i);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue