Commit 3152cbb4 authored by Seungha Yang's avatar Seungha Yang

glupload: Don't leak caps features

Create caps features when it is required.
parent 17899dc9
Pipeline #18202 passed with stages
in 75 minutes and 57 seconds
......@@ -518,9 +518,7 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
GstPadDirection direction, GstCaps * caps)
{
struct DmabufUpload *dmabuf = impl;
GstCapsFeatures *passthrough =
gst_caps_features_from_string
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
GstCapsFeatures *passthrough;
GstCaps *ret;
if (context) {
......@@ -532,6 +530,9 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
return NULL;
}
passthrough = gst_caps_features_from_string
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
if (direction == GST_PAD_SINK) {
GstCaps *tmp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment