summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-11-01 10:30:27 +0200
committerTim-Philipp Müller <tim@centricular.com>2020-11-02 11:07:06 +0000
commit10c6262179ee66ff03ed7dbebf46068b89db93b0 (patch)
treeb0a0ce7b5e6ab21892808c2f06f5305eab05aff6 /gst
parent34200e8f494a37262b9be22b97db9f7869be0faa (diff)
downloadgstreamer-plugins-good-10c6262179ee66ff03ed7dbebf46068b89db93b0.tar.gz
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/803>
Diffstat (limited to 'gst')
-rw-r--r--gst/flv/gstflvmux.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c
index 3890b0b05..8742ac36e 100644
--- a/gst/flv/gstflvmux.c
+++ b/gst/flv/gstflvmux.c
@@ -781,9 +781,10 @@ static void
gst_flv_mux_release_pad (GstElement * element, GstPad * pad)
{
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);
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_element_remove_pad (element, pad);
+ gst_object_unref (flvpad);
}
static GstFlowReturn