mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
uridecodebin: disconnect signal handlers before disposing
This commit is contained in:
parent
1bfefc50af
commit
7b312c5980
1 changed files with 1 additions and 1 deletions
|
@ -1655,7 +1655,6 @@ remove_source (GstURIDecodeBin * bin)
|
|||
if (source) {
|
||||
GST_DEBUG_OBJECT (bin, "removing old src element");
|
||||
gst_element_set_state (source, GST_STATE_NULL);
|
||||
gst_bin_remove (GST_BIN_CAST (bin), source);
|
||||
|
||||
if (bin->src_np_sig_id) {
|
||||
g_signal_handler_disconnect (source, bin->src_np_sig_id);
|
||||
|
@ -1665,6 +1664,7 @@ remove_source (GstURIDecodeBin * bin)
|
|||
g_signal_handler_disconnect (source, bin->src_nmp_sig_id);
|
||||
bin->src_nmp_sig_id = 0;
|
||||
}
|
||||
gst_bin_remove (GST_BIN_CAST (bin), source);
|
||||
bin->source = NULL;
|
||||
}
|
||||
if (bin->queue) {
|
||||
|
|
Loading…
Reference in a new issue