summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2016-04-13 13:56:44 +0300
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2016-04-13 13:56:44 +0300
commit6b095f7f6875f53ba3a161c20ea88f397f651dc4 (patch)
tree15c8282f829e68cfdc30be7658f9f65d8b440d8e
parentceef66bde9cd1d788b74b5743beccf380e0b6f2c (diff)
iHDDriver: Workaround6: Dont use vaPutImage() to ensure the suppored imageformatsiHD_driver
iHDDriver vaPutimage() API is broken. premature code in iHDDriver messing up vaPutImage() when surface and image have differnt video formats.
-rw-r--r--gst/vaapi/gstvaapipluginbase.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c
index c2dc4c98..7a0e1c86 100644
--- a/gst/vaapi/gstvaapipluginbase.c
+++ b/gst/vaapi/gstvaapipluginbase.c
@@ -976,7 +976,10 @@ ensure_allowed_raw_caps (GstVaapiPluginBase * plugin)
image = gst_vaapi_image_new (plugin->display, format, 64, 64);
if (!image)
continue;
+ /* HACK: iHD driver vaPutImage() API is broken */
+#if 0
if (gst_vaapi_surface_put_image (surface, image))
+#endif
g_array_append_val (out_formats, format);
gst_vaapi_object_unref (image);
}