summaryrefslogtreecommitdiff
path: root/debian/patches/0069-stream-restore-workaroung-moving-stream-volume-rest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0069-stream-restore-workaroung-moving-stream-volume-rest.patch')
-rw-r--r--debian/patches/0069-stream-restore-workaroung-moving-stream-volume-rest.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/0069-stream-restore-workaroung-moving-stream-volume-rest.patch b/debian/patches/0069-stream-restore-workaroung-moving-stream-volume-rest.patch
new file mode 100644
index 000000000..f1e50e36e
--- /dev/null
+++ b/debian/patches/0069-stream-restore-workaroung-moving-stream-volume-rest.patch
@@ -0,0 +1,38 @@
+From 9d059e544a42d35963a30a5c571ba44e2a03d2e8 Mon Sep 17 00:00:00 2001
+From: =?utf-8?q?Marc-Andr=C3=A9=20Lureau?= <marc-andre.lureau@nokia.com>
+Date: Tue, 23 Jun 2009 15:52:37 +0300
+Subject: [PATCH] stream-restore: workaroung moving stream volume restore
+
+---
+ src/modules/module-stream-restore.c | 8 +++++++-
+ 1 files changed, 7 insertions(+), 1 deletions(-)
+
+diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c
+index e233700..4661884 100644
+--- a/src/modules/module-stream-restore.c
++++ b/src/modules/module-stream-restore.c
+@@ -775,7 +775,10 @@ static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
+ char *n;
+ pa_sink *s;
+
+- if (!(n = get_name(si->proplist, "sink-input")))
++ if (!si->sink) /* for eg. moving */
++ continue;
++
++ if (!(n = get_name(si->proplist, "sink-input")))
+ continue;
+
+ if (!pa_streq(name, n)) {
+@@ -807,6 +810,9 @@ static void apply_entry(struct userdata *u, const char *name, struct entry *e) {
+ char *n;
+ pa_source *s;
+
++ if (!so->source) /* for eg. moving */
++ continue;
++
+ if (!(n = get_name(so->proplist, "source-output")))
+ continue;
+
+--
+1.5.6.3
+