gst/playback/gststreaminfo.c: Elements may already be destroyed when this function is called.

Original commit message from CVS:
* gst/playback/gststreaminfo.c: (gst_stream_info_dispose):
Elements may already be destroyed when this function is called.
This commit is contained in:
Ronald S. Bultje 2005-01-18 15:08:22 +00:00
parent dd692c12da
commit 1df4d5f66e
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-01-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gststreaminfo.c: (gst_stream_info_dispose):
Elements may already be destroyed when this function is called.
2005-01-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/qtdemux/qtdemux.c: (gst_qtdemux_change_state),

View file

@ -191,7 +191,8 @@ gst_stream_info_dispose (GObject * object)
stream_info = GST_STREAM_INFO (object);
if (stream_info->object) {
if (GST_PAD_REALIZE (stream_info->object)) {
if (GST_PAD_REALIZE (stream_info->object) && gst_pad_get_parent ((GstPad *)
GST_PAD_REALIZE (stream_info->object))) {
g_signal_handlers_disconnect_by_func (gst_pad_get_parent ((GstPad *)
GST_PAD_REALIZE (stream_info->object)),
G_CALLBACK (stream_info_change_state), stream_info);