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:
69eab1e
)
core: monitor sources need to inherit the suspend cause from their sinks
author
Lennart Poettering
<lennart@poettering.net>
Sat, 6 Jun 2009 13:32:45 +0000
(15:32 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 6 Jun 2009 13:32:45 +0000
(15:32 +0200)
src/pulsecore/sink.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/sink.c
b/src/pulsecore/sink.c
index
a087e42
..
141084d
100644
(file)
--- a/
src/pulsecore/sink.c
+++ b/
src/pulsecore/sink.c
@@
-505,10
+505,13
@@
int pa_sink_suspend(pa_sink *s, pa_bool_t suspend, pa_suspend_cause_t cause) {
pa_assert(PA_SINK_IS_LINKED(s->state));
pa_assert(cause != 0);
- if (suspend)
+ if (suspend)
{
s->suspend_cause |= cause;
- else
+ s->monitor_source->suspend_cause |= cause;
+ } else {
s->suspend_cause &= ~cause;
+ s->monitor_source->suspend_cause &= ~cause;
+ }
if ((pa_sink_get_state(s) == PA_SINK_SUSPENDED) == !!s->suspend_cause)
return 0;