mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-18 06:59:57 -05:00
Make pa_sink_render_* and pa_source_post work only when in RUNNING state, to fix handling of monitor sources when their sink is suspended
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1509 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
0a095f6266
commit
295e1c83ac
2 changed files with 5 additions and 2 deletions
|
|
@ -232,6 +232,9 @@ void pa_source_post(pa_source*s, const pa_memchunk *chunk) {
|
|||
pa_source_assert_ref(s);
|
||||
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