mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
encodebin: Fix refcount mishandling
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/770>
This commit is contained in:
parent
7563a68ec8
commit
da160c57c8
1 changed files with 2 additions and 1 deletions
|
@ -1273,7 +1273,8 @@ setup_smart_encoder (GstEncodeBin * ebin, GstEncodingProfile * sprof,
|
|||
|
||||
gst_bin_add_many (GST_BIN (reencoder_bin),
|
||||
gst_object_ref (encoder),
|
||||
parser ? gst_object_ref (parser) : sgroup->smart_capsfilter,
|
||||
parser ? gst_object_ref (parser) :
|
||||
gst_object_ref (sgroup->smart_capsfilter),
|
||||
parser ? gst_object_ref (sgroup->smart_capsfilter) : NULL, NULL);
|
||||
if (!native_video) {
|
||||
convert = gst_element_factory_make ("videoconvert", NULL);
|
||||
|
|
Loading…
Reference in a new issue