mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
don't rely on PA_SINK_RUNNING vs. PA_SINK_IDLE for optimizations since it might not be fully up to date
This commit is contained in:
parent
d1cf0e7845
commit
06de6393d1
2 changed files with 4 additions and 12 deletions
|
|
@ -429,9 +429,6 @@ void pa_source_post(pa_source*s, const pa_memchunk *chunk) {
|
|||
pa_assert(PA_SOURCE_IS_OPENED(s->thread_info.state));
|
||||
pa_assert(chunk);
|
||||
|
||||
if (s->thread_info.state != PA_SOURCE_RUNNING)
|
||||
return;
|
||||
|
||||
if (s->thread_info.soft_muted || !pa_cvolume_is_norm(&s->thread_info.soft_volume)) {
|
||||
pa_memchunk vchunk = *chunk;
|
||||
|
||||
|
|
@ -470,9 +467,6 @@ void pa_source_post_direct(pa_source*s, pa_source_output *o, const pa_memchunk *
|
|||
pa_assert(o->thread_info.direct_on_input);
|
||||
pa_assert(chunk);
|
||||
|
||||
if (s->thread_info.state != PA_SOURCE_RUNNING)
|
||||
return;
|
||||
|
||||
if (s->thread_info.soft_muted || !pa_cvolume_is_norm(&s->thread_info.soft_volume)) {
|
||||
pa_memchunk vchunk = *chunk;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue