gst/playback/gstplaybasebin.c: Don't try to disconnect a signal from a finalized object.

Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (remove_source):
Don't try to disconnect a signal from a finalized object.
This commit is contained in:
Wim Taymans 2007-01-25 16:02:41 +00:00
parent af52900954
commit ce1ff3c94c
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-01-25 Wim Taymans <wim@fluendo.com>
* gst/playback/gstplaybasebin.c: (remove_source):
Don't try to disconnect a signal from a finalized object.
2007-01-25 Tim-Philipp Müller <tim at centricular dot net> 2007-01-25 Tim-Philipp Müller <tim at centricular dot net>
* gst/playback/gstdecodebin2.c: (gst_decode_bin_dispose): * gst/playback/gstdecodebin2.c: (gst_decode_bin_dispose):

View file

@ -1899,7 +1899,6 @@ remove_source (GstPlayBaseBin * bin)
if (source) { if (source) {
GST_DEBUG_OBJECT (bin, "removing old src element"); GST_DEBUG_OBJECT (bin, "removing old src element");
gst_element_set_state (source, GST_STATE_NULL); gst_element_set_state (source, GST_STATE_NULL);
gst_bin_remove (GST_BIN_CAST (bin), source);
if (bin->src_np_sig_id) { if (bin->src_np_sig_id) {
g_signal_handler_disconnect (G_OBJECT (source), bin->src_np_sig_id); g_signal_handler_disconnect (G_OBJECT (source), bin->src_np_sig_id);
@ -1909,6 +1908,7 @@ remove_source (GstPlayBaseBin * bin)
g_signal_handler_disconnect (G_OBJECT (source), bin->src_nmp_sig_id); g_signal_handler_disconnect (G_OBJECT (source), bin->src_nmp_sig_id);
bin->src_nmp_sig_id = 0; bin->src_nmp_sig_id = 0;
} }
gst_bin_remove (GST_BIN_CAST (bin), source);
bin->source = NULL; bin->source = NULL;
} }
} }