summaryrefslogtreecommitdiffstats
path: root/ext/gconf/gstgconfaudiosrc.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-12-11 11:41:18 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-12-11 11:41:18 +0000
commit2f992c783ef619eabc8baec272bf71c3397051d6 (patch)
tree9fd31a2a8368cd6e17505cff4c21d74386163628 /ext/gconf/gstgconfaudiosrc.h
parent14999998d43450efcb2c9f690c2fa98c0262d017 (diff)
ext/gconf/gstgconfaudiosrc.*: Remove gconf notify hook when the gconfaudiosrc element is destroyed, otherwise the cal...
Original commit message from CVS: * ext/gconf/gstgconfaudiosrc.c: (gst_gconf_audio_src_init), (gst_gconf_audio_src_dispose), (do_toggle_element): * ext/gconf/gstgconfaudiosrc.h: Remove gconf notify hook when the gconfaudiosrc element is destroyed, otherwise the callback may be called on an already-destroyed instance and bad things happen. Should fix #378184. Also ignore gconf key changes when the source is already running.
Diffstat (limited to 'ext/gconf/gstgconfaudiosrc.h')
-rw-r--r--ext/gconf/gstgconfaudiosrc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gconf/gstgconfaudiosrc.h b/ext/gconf/gstgconfaudiosrc.h
index f30717f9..cac4085e 100644
--- a/ext/gconf/gstgconfaudiosrc.h
+++ b/ext/gconf/gstgconfaudiosrc.h
@@ -40,6 +40,8 @@ typedef struct _GstGConfAudioSrc {
GstElement *kid;
GstPad *pad;
+ guint gconf_notify_id;
+
/* Current gconf string */
gchar *gconf_str;
} GstGConfAudioSrc;