From 89227af4079bf378aafae5285ab7152cb35725a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 9 Jun 2010 20:29:02 +0200 Subject: [PATCH] gconfaudiosink: Rename instance variable to be more descriptive --- ext/gconf/gstgconfaudiosink.c | 8 ++++---- ext/gconf/gstgconfaudiosink.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ext/gconf/gstgconfaudiosink.c b/ext/gconf/gstgconfaudiosink.c index 802861ea80..e28a29161b 100644 --- a/ext/gconf/gstgconfaudiosink.c +++ b/ext/gconf/gstgconfaudiosink.c @@ -216,11 +216,11 @@ gst_gconf_switch_profile (GstGConfAudioSink * sink, GstGConfProfile profile) if (sink->client == NULL) return; - if (sink->connection) { + if (sink->notify_id) { GST_DEBUG_OBJECT (sink, "Unsubscribing old key %s for profile %d", gst_gconf_get_key_for_sink_profile (sink->profile), sink->profile); - gconf_client_notify_remove (sink->client, sink->connection); - sink->connection = 0; + gconf_client_notify_remove (sink->client, sink->notify_id); + sink->notify_id = 0; } sink->profile = profile; @@ -229,7 +229,7 @@ gst_gconf_switch_profile (GstGConfAudioSink * sink, GstGConfProfile profile) GST_DEBUG_OBJECT (sink, "Subscribing to key %s for profile %d", key, profile); - sink->connection = gconf_client_notify_add (sink->client, key, + sink->notify_id = gconf_client_notify_add (sink->client, key, cb_change_child, sink, NULL, NULL); } } diff --git a/ext/gconf/gstgconfaudiosink.h b/ext/gconf/gstgconfaudiosink.h index c323b1315d..2d730f3a92 100644 --- a/ext/gconf/gstgconfaudiosink.h +++ b/ext/gconf/gstgconfaudiosink.h @@ -45,7 +45,7 @@ typedef struct _GstGConfAudioSink { /* explicit pointers to stuff used */ GConfClient *client; GstGConfProfile profile; - guint connection; + guint notify_id; /* Current gconf string */ gchar *gconf_str;