gconfaudiosink: Rename instance variable to be more descriptive

This commit is contained in:
Sebastian Dröge 2010-06-09 20:29:02 +02:00
parent b7d435911f
commit 89227af407
2 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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;