From 2e2bc0da54413da4ee64d481b146dde3c9e0838a Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 12 Nov 2022 09:15:23 +0100 Subject: [PATCH] transcodebin: Don't leak GstStream Part-of: --- subprojects/gst-plugins-bad/gst/transcode/gsttranscodebin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/transcode/gsttranscodebin.c b/subprojects/gst-plugins-bad/gst/transcode/gsttranscodebin.c index 0c724c5352..9374a673ca 100644 --- a/subprojects/gst-plugins-bad/gst/transcode/gsttranscodebin.c +++ b/subprojects/gst-plugins-bad/gst/transcode/gsttranscodebin.c @@ -359,6 +359,8 @@ gst_transcode_bin_link_encodebin_pad (GstTranscodeBin * self, GstPad * pad, gst_event_parse_stream (sstart, &tmpstream); stream = setup_stream (self, tmpstream); + + gst_object_unref (tmpstream); } if (!stream) {