From 240fc0f726f8be5da29554332d0e50a78d4be238 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Mon, 28 Sep 2015 08:49:39 +0100 Subject: [PATCH] vaapibufferpool: do not create texture upload meta if dmabuf https://bugzilla.gnome.org/show_bug.cgi?id=755072 --- gst/vaapi/gstvaapivideobufferpool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapivideobufferpool.c b/gst/vaapi/gstvaapivideobufferpool.c index 8e45bbc4c0..cc80df6532 100644 --- a/gst/vaapi/gstvaapivideobufferpool.c +++ b/gst/vaapi/gstvaapivideobufferpool.c @@ -199,7 +199,8 @@ gst_vaapi_video_buffer_pool_set_config (GstBufferPool * pool, gst_buffer_pool_config_set_video_alignment (config, &align); } - priv->has_texture_upload_meta = gst_buffer_pool_config_has_option (config, + priv->has_texture_upload_meta = !priv->use_dmabuf_memory + && gst_buffer_pool_config_has_option (config, GST_BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META); return