31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From 604a1f534e703b9d492f886ffabdca879df824ef Mon Sep 17 00:00:00 2001
|
|
From: Chris Coulson <chrisccoulson@googlemail.com>
|
|
Date: Fri, 31 Jul 2009 16:59:36 +0100
|
|
Subject: [PATCH 2/4] =?utf-8?q?Bug=20590073=20=E2=80=93=20gnome-settings-daemon=20crashed=20with=20SIGSEGV=20in=20gvc=5Fmixer=5Fstream=5Fis=5Frunning()?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=utf-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Fix crasher when the default sink changes, we were unref'ing
|
|
streams, when never ref'ing them.
|
|
---
|
|
plugins/media-keys/gsd-media-keys-manager.c | 2 +-
|
|
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
|
|
index 3eeea71..8438875 100644
|
|
--- a/plugins/media-keys/gsd-media-keys-manager.c
|
|
+++ b/plugins/media-keys/gsd-media-keys-manager.c
|
|
@@ -740,7 +740,7 @@ update_default_sink (GsdMediaKeysManager *manager)
|
|
}
|
|
|
|
if (stream != NULL) {
|
|
- manager->priv->stream = stream;
|
|
+ manager->priv->stream = g_object_ref (stream);
|
|
g_signal_connect (G_OBJECT (manager->priv->stream), "notify::volume",
|
|
G_CALLBACK (on_stream_event_notify), manager);
|
|
g_signal_connect (G_OBJECT (manager->priv->stream), "notify::is-muted",
|
|
--
|
|
1.6.2.5
|
|
|