From 33fd9d677d0538186dcd1e04a4f5df5e6d7abfb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 9 Nov 2005 16:09:52 +0000 Subject: [PATCH] gst/playback/gstplaybin.c: Set elements to NULL state before disposing of them. Original commit message from CVS: * gst/playback/gstplaybin.c: (gst_play_bin_dispose): Set elements to NULL state before disposing of them. --- ChangeLog | 5 +++++ gst/playback/gstplaybin.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 81d9fca9cb..833c3b5688 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-09 Tim-Philipp Müller + + * gst/playback/gstplaybin.c: (gst_play_bin_dispose): + Set elements to NULL state before disposing of them. + 2005-11-08 Sebastien Cote Reviewed by: Tim-Philipp Müller diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index 971fc9be1b..1a06327467 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -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; }