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

gconfaudiosink: Rename instance variable to be more descriptive

parent b7d43591
......@@ -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);
}
}
......
......@@ -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;
......
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