mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
oggmux,adder: Check if collectpads has been freed
Core now calls release_pad in finalize, which is usually after the collectpads has been unreffed.
This commit is contained in:
parent
e1149f52c1
commit
6d150873e8
2 changed files with 6 additions and 2 deletions
|
@ -462,7 +462,9 @@ gst_ogg_mux_release_pad (GstElement * element, GstPad * pad)
|
|||
|
||||
ogg_mux = GST_OGG_MUX (gst_pad_get_parent (pad));
|
||||
|
||||
gst_collect_pads_remove_pad (ogg_mux->collect, pad);
|
||||
if (ogg_mux->collect) {
|
||||
gst_collect_pads_remove_pad (ogg_mux->collect, pad);
|
||||
}
|
||||
gst_element_remove_pad (element, pad);
|
||||
|
||||
gst_object_unref (ogg_mux);
|
||||
|
|
|
@ -991,7 +991,9 @@ gst_adder_release_pad (GstElement * element, GstPad * pad)
|
|||
|
||||
GST_DEBUG_OBJECT (adder, "release pad %s:%s", GST_DEBUG_PAD_NAME (pad));
|
||||
|
||||
gst_collect_pads_remove_pad (adder->collect, pad);
|
||||
if (adder->collect) {
|
||||
gst_collect_pads_remove_pad (adder->collect, pad);
|
||||
}
|
||||
gst_element_remove_pad (element, pad);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue