projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09287d
)
Don't allow suspending of monitor sources.
author
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Mar 2009 04:25:41 +0000
(
05:25
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Mar 2009 04:25:41 +0000
(
05:25
+0100)
Closes #499
src/pulsecore/source.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/source.c
b/src/pulsecore/source.c
index
5277716
..
f946366
100644
(file)
--- a/
src/pulsecore/source.c
+++ b/
src/pulsecore/source.c
@@
-424,6
+424,9
@@
int pa_source_suspend(pa_source *s, pa_bool_t suspend) {
pa_source_assert_ref(s);
pa_assert(PA_SOURCE_IS_LINKED(s->state));
+ if (s->monitor_of)
+ return -PA_ERR_NOTSUPPORTED;
+
if (suspend)
return source_set_state(s, PA_SOURCE_SUSPENDED);
else