summaryrefslogtreecommitdiff
path: root/debian/patches/0069-stream-restore-workaroung-moving-stream-volume-resto.patch
blob: e6984422debcb27b21d237215ce3c98ab9de178a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 69/85] 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.6.3.3