gst/playback/gstplaybin.c: Set elements to NULL state before disposing of them.
authorTim-Philipp Müller <tim@centricular.net>
Wed, 9 Nov 2005 16:09:52 +0000 (16:09 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 9 Nov 2005 16:09:52 +0000 (16:09 +0000)
Original commit message from CVS:
* gst/playback/gstplaybin.c: (gst_play_bin_dispose):
Set elements to NULL state before disposing of them.

ChangeLog
gst/playback/gstplaybin.c

index 81d9fca..833c3b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-09  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/playback/gstplaybin.c: (gst_play_bin_dispose):
+         Set elements to NULL state before disposing of them.
+
 2005-11-08  Sebastien Cote  <sebas642 at yahoo dot ca>
 
        Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
index 971fc9b..1a06327 100644 (file)
@@ -230,14 +230,17 @@ gst_play_bin_dispose (GObject * object)
   }
 
   if (play_bin->audio_sink != NULL) {
+    gst_element_set_state (play_bin->audio_sink, GST_STATE_NULL);
     gst_object_unref (play_bin->audio_sink);
     play_bin->audio_sink = NULL;
   }
   if (play_bin->video_sink != NULL) {
+    gst_element_set_state (play_bin->video_sink, GST_STATE_NULL);
     gst_object_unref (play_bin->video_sink);
     play_bin->video_sink = NULL;
   }
   if (play_bin->visualisation != NULL) {
+    gst_element_set_state (play_bin->visualisation, GST_STATE_NULL);
     gst_object_unref (play_bin->visualisation);
     play_bin->visualisation = NULL;
   }