mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
flvmux: Release pads via GstAggregator
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/797 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/801>
This commit is contained in:
parent
9d74a60810
commit
917bf649cc
1 changed files with 4 additions and 3 deletions
|
@ -781,9 +781,10 @@ static void
|
||||||
gst_flv_mux_release_pad (GstElement * element, GstPad * pad)
|
gst_flv_mux_release_pad (GstElement * element, GstPad * pad)
|
||||||
{
|
{
|
||||||
GstFlvMux *mux = GST_FLV_MUX (element);
|
GstFlvMux *mux = GST_FLV_MUX (element);
|
||||||
GstFlvMuxPad *flvpad = GST_FLV_MUX_PAD (pad);
|
GstFlvMuxPad *flvpad = GST_FLV_MUX_PAD (gst_object_ref (pad));
|
||||||
|
|
||||||
|
GST_ELEMENT_CLASS (gst_flv_mux_parent_class)->release_pad (element, pad);
|
||||||
|
|
||||||
gst_pad_set_active (pad, FALSE);
|
|
||||||
gst_flv_mux_reset_pad (flvpad);
|
gst_flv_mux_reset_pad (flvpad);
|
||||||
|
|
||||||
if (flvpad == mux->video_pad) {
|
if (flvpad == mux->video_pad) {
|
||||||
|
@ -794,7 +795,7 @@ gst_flv_mux_release_pad (GstElement * element, GstPad * pad)
|
||||||
GST_WARNING_OBJECT (pad, "Pad is not known audio or video pad");
|
GST_WARNING_OBJECT (pad, "Pad is not known audio or video pad");
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_element_remove_pad (element, pad);
|
gst_object_unref (flvpad);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstFlowReturn
|
static GstFlowReturn
|
||||||
|
|
Loading…
Reference in a new issue