Commit 89227af4 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

gconfaudiosink: Rename instance variable to be more descriptive

parent b7d43591
...@@ -216,11 +216,11 @@ gst_gconf_switch_profile (GstGConfAudioSink * sink, GstGConfProfile profile) ...@@ -216,11 +216,11 @@ gst_gconf_switch_profile (GstGConfAudioSink * sink, GstGConfProfile profile)
if (sink->client == NULL) if (sink->client == NULL)
return; return;
if (sink->connection) { if (sink->notify_id) {
GST_DEBUG_OBJECT (sink, "Unsubscribing old key %s for profile %d", GST_DEBUG_OBJECT (sink, "Unsubscribing old key %s for profile %d",
gst_gconf_get_key_for_sink_profile (sink->profile), sink->profile); gst_gconf_get_key_for_sink_profile (sink->profile), sink->profile);
gconf_client_notify_remove (sink->client, sink->connection); gconf_client_notify_remove (sink->client, sink->notify_id);
sink->connection = 0; sink->notify_id = 0;
} }
sink->profile = profile; sink->profile = profile;
...@@ -229,7 +229,7 @@ gst_gconf_switch_profile (GstGConfAudioSink * sink, GstGConfProfile profile) ...@@ -229,7 +229,7 @@ gst_gconf_switch_profile (GstGConfAudioSink * sink, GstGConfProfile profile)
GST_DEBUG_OBJECT (sink, "Subscribing to key %s for profile %d", GST_DEBUG_OBJECT (sink, "Subscribing to key %s for profile %d",
key, profile); 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); cb_change_child, sink, NULL, NULL);
} }
} }
......
...@@ -45,7 +45,7 @@ typedef struct _GstGConfAudioSink { ...@@ -45,7 +45,7 @@ typedef struct _GstGConfAudioSink {
/* explicit pointers to stuff used */ /* explicit pointers to stuff used */
GConfClient *client; GConfClient *client;
GstGConfProfile profile; GstGConfProfile profile;
guint connection; guint notify_id;
/* Current gconf string */ /* Current gconf string */
gchar *gconf_str; gchar *gconf_str;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment