mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
glupload: Don't leak caps features
Create caps features when it is required.
This commit is contained in:
parent
17899dc9b6
commit
3152cbb46e
1 changed files with 4 additions and 3 deletions
|
@ -518,9 +518,7 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
||||||
GstPadDirection direction, GstCaps * caps)
|
GstPadDirection direction, GstCaps * caps)
|
||||||
{
|
{
|
||||||
struct DmabufUpload *dmabuf = impl;
|
struct DmabufUpload *dmabuf = impl;
|
||||||
GstCapsFeatures *passthrough =
|
GstCapsFeatures *passthrough;
|
||||||
gst_caps_features_from_string
|
|
||||||
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
|
||||||
GstCaps *ret;
|
GstCaps *ret;
|
||||||
|
|
||||||
if (context) {
|
if (context) {
|
||||||
|
@ -532,6 +530,9 @@ _dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
passthrough = gst_caps_features_from_string
|
||||||
|
(GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION);
|
||||||
|
|
||||||
if (direction == GST_PAD_SINK) {
|
if (direction == GST_PAD_SINK) {
|
||||||
GstCaps *tmp;
|
GstCaps *tmp;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue