transcodebin: Don't leak GstStream

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
Edward Hervey 2022-11-12 09:15:23 +01:00 committed by Edward Hervey
parent 8e09b645c0
commit 2e2bc0da54

View file

@ -359,6 +359,8 @@ gst_transcode_bin_link_encodebin_pad (GstTranscodeBin * self, GstPad * pad,
gst_event_parse_stream (sstart, &tmpstream); gst_event_parse_stream (sstart, &tmpstream);
stream = setup_stream (self, tmpstream); stream = setup_stream (self, tmpstream);
gst_object_unref (tmpstream);
} }
if (!stream) { if (!stream) {