diff --git a/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c b/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c index e8b7af2c1f..85a4913e14 100644 --- a/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c +++ b/subprojects/gst-plugins-base/gst/encoding/gstencodebasebin.c @@ -2220,6 +2220,7 @@ create_elements_and_pads (GstEncodeBaseBin * ebin) if (!pad) goto no_muxer_ghost_pad; + gst_object_unref (muxerpad); gst_element_add_pad (GST_ELEMENT (ebin), pad); }