mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
echo-cancel: Don't process if sink is unconnected
If there's no playback data, there's no point in actually processing the capture data.
This commit is contained in:
parent
89f00f3e4c
commit
4bd357ae57
1 changed files with 2 additions and 1 deletions
|
|
@ -657,7 +657,8 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
|
|||
return;
|
||||
}
|
||||
|
||||
if (PA_UNLIKELY(u->source->thread_info.state != PA_SOURCE_RUNNING)) {
|
||||
if (PA_UNLIKELY(u->source->thread_info.state != PA_SOURCE_RUNNING ||
|
||||
u->sink->thread_info.state != PA_SINK_RUNNING)) {
|
||||
pa_source_post(u->source, chunk);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue