projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44092d
)
stream-restore: Check for readability before reading volume
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Tue, 12 Apr 2011 07:41:40 +0000
(13:11 +0530)
committer
Colin Guthrie
<colin@mageia.org>
Mon, 18 Apr 2011 08:31:51 +0000
(10:31 +0200)
This avoids an assert in pa_sink_input_get_volume() when connecting a
passthrough stream.
src/modules/module-stream-restore.c
patch
|
blob
|
history
diff --git
a/src/modules/module-stream-restore.c
b/src/modules/module-stream-restore.c
index
d27982b
..
4d1ea04
100644
(file)
--- a/
src/modules/module-stream-restore.c
+++ b/
src/modules/module-stream-restore.c
@@
-1168,7
+1168,7
@@
static void subscribe_callback(pa_core *c, pa_subscription_event_type_t t, uint3
created_new_entry = FALSE;
}
- if (sink_input->save_volume) {
+ if (sink_input->save_volume
&& pa_sink_input_is_volume_readable(sink_input)
) {
pa_assert(sink_input->volume_writable);
entry.channel_map = sink_input->channel_map;