diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-09-24 23:32:01 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-09-24 23:32:01 +0000 |
commit | 0e3e9e227477784a1559dd71f667c269f06e635c (patch) | |
tree | 45720ffff9cdb86adf82f03d6094d994bef5ad0c | |
parent | f0f9df999045c202def3a46589a98bdae86127ea (diff) |
only post data into the monitor source when it is not suspended
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1901 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulsecore/sink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 46f890de..38e7d632 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -482,7 +482,7 @@ void pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result) { 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_OPENED(pa_source_get_state(s->monitor_source))) pa_source_post(s->monitor_source, result); pa_sink_unref(s); @@ -549,7 +549,7 @@ void pa_sink_render_into(pa_sink*s, pa_memchunk *target) { 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_OPENED(pa_source_get_state(s->monitor_source))) pa_source_post(s->monitor_source, target); pa_sink_unref(s); |