mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
encodebin: Avoid unnecessary read only caps copy
This commit is contained in:
parent
001b4a0072
commit
635d2411cc
1 changed files with 1 additions and 1 deletions
|
@ -1202,7 +1202,7 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof,
|
||||||
|
|
||||||
/* Check if stream format is compatible */
|
/* Check if stream format is compatible */
|
||||||
srcpad = gst_element_get_static_pad (sgroup->smartencoder, "src");
|
srcpad = gst_element_get_static_pad (sgroup->smartencoder, "src");
|
||||||
tmpcaps = gst_pad_get_caps (srcpad);
|
tmpcaps = gst_pad_get_caps_reffed (srcpad);
|
||||||
if (!gst_caps_can_intersect (tmpcaps, format)) {
|
if (!gst_caps_can_intersect (tmpcaps, format)) {
|
||||||
GST_DEBUG ("We don't have a smart encoder for the stream format");
|
GST_DEBUG ("We don't have a smart encoder for the stream format");
|
||||||
gst_object_unref (sgroup->smartencoder);
|
gst_object_unref (sgroup->smartencoder);
|
||||||
|
|
Loading…
Reference in a new issue