projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1615450
)
drop data from inputs only when in running state
author
Lennart Poettering
<lennart@poettering.net>
Sat, 28 Jul 2007 22:55:44 +0000
(22:55 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 28 Jul 2007 22:55:44 +0000
(22:55 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1558
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
015cf4d
..
7f2a8b3
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-408,7
+408,8
@@
void pa_sink_render(pa_sink*s, size_t length, pa_memchunk *result) {
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)
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);
}
- 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)
pa_source_post(s->monitor_source, target);