mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
drop data from inputs only when in running state
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1558 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
1615450767
commit
81aa8ea37c
1 changed files with 4 additions and 2 deletions
|
|
@ -408,7 +408,8 @@ void pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result) {
|
||||||
result->index = 0;
|
result->index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs_drop(s, info, n, result->length);
|
if (s->thread_info.state == PA_SINK_RUNNING)
|
||||||
|
inputs_drop(s, info, n, result->length);
|
||||||
|
|
||||||
if (s->monitor_source)
|
if (s->monitor_source)
|
||||||
pa_source_post(s->monitor_source, result);
|
pa_source_post(s->monitor_source, result);
|
||||||
|
|
@ -472,7 +473,8 @@ void pa_sink_render_into(pa_sink*s, pa_memchunk *target) {
|
||||||
pa_memblock_release(target->memblock);
|
pa_memblock_release(target->memblock);
|
||||||
}
|
}
|
||||||
|
|
||||||
inputs_drop(s, info, n, target->length);
|
if (s->thread_info.state == PA_SINK_RUNNING)
|
||||||
|
inputs_drop(s, info, n, target->length);
|
||||||
|
|
||||||
if (s->monitor_source)
|
if (s->monitor_source)
|
||||||
pa_source_post(s->monitor_source, target);
|
pa_source_post(s->monitor_source, target);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue