mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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.
This commit is contained in:
parent
e2d6dc5528
commit
af9fad2953
3 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-10-10 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2005-10-07 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* ext/raw1394/gstdv1394src.c: Make interruptible, so it won't
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue