projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17899dc
)
glupload: Don't leak caps features
author
Seungha Yang
<seungha.yang@navercorp.com>
Fri, 8 Feb 2019 12:38:04 +0000
(21:38 +0900)
committer
Seungha Yang
<seungha.yang@navercorp.com>
Fri, 8 Feb 2019 12:43:43 +0000
(21:43 +0900)
Create caps features when it is required.
gst-libs/gst/gl/gstglupload.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglupload.c
b/gst-libs/gst/gl/gstglupload.c
index f1108f4be153f80ca3234f9d13bc26720798af19..c10c0230f5848e4b0e2fa330de40be2bb513a5a8 100644
(file)
--- a/
gst-libs/gst/gl/gstglupload.c
+++ b/
gst-libs/gst/gl/gstglupload.c
@@
-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;