summaryrefslogtreecommitdiffstats
path: root/ext/gconf
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-10-10 12:31:07 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-10-10 12:31:07 +0000
commitaf9fad29535853620b1121b6030ef4580b34b128 (patch)
tree539d043070219b7f590057bef88edbf170af412c /ext/gconf
parente2d6dc55287c9bde76b37a4e3c83e9cebc06fd39 (diff)
ext/gconf/: Make sure element is NULL before removing from the bin.
Original commit message from CVS: * ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_reset): * ext/gconf/gstgconfvideosink.c: (gst_gconf_video_sink_reset): Make sure element is NULL before removing from the bin.
Diffstat (limited to 'ext/gconf')
-rw-r--r--ext/gconf/gstgconfaudiosink.c1
-rw-r--r--ext/gconf/gstgconfvideosink.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/gconf/gstgconfaudiosink.c b/ext/gconf/gstgconfaudiosink.c
index 5c734da2..e849c7db 100644
--- a/ext/gconf/gstgconfaudiosink.c
+++ b/ext/gconf/gstgconfaudiosink.c
@@ -74,6 +74,7 @@ gst_gconf_audio_sink_reset (GstGConfAudioSink * sink)
/* fakesink */
if (sink->kid) {
+ gst_element_set_state (sink->kid, GST_STATE_NULL);
gst_bin_remove (GST_BIN (sink), sink->kid);
}
sink->kid = gst_element_factory_make ("fakesink", "testsink");
diff --git a/ext/gconf/gstgconfvideosink.c b/ext/gconf/gstgconfvideosink.c
index ccdc3018..f1f7eff8 100644
--- a/ext/gconf/gstgconfvideosink.c
+++ b/ext/gconf/gstgconfvideosink.c
@@ -74,6 +74,7 @@ gst_gconf_video_sink_reset (GstGConfVideoSink * sink)
/* fakesink */
if (sink->kid) {
+ gst_element_set_state (sink->kid, GST_STATE_NULL);
gst_bin_remove (GST_BIN (sink), sink->kid);
}
sink->kid = gst_element_factory_make ("fakesink", "testsink");