summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipluginbase.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/vaapi/gstvaapipluginbase.c')
-rw-r--r--gst/vaapi/gstvaapipluginbase.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c
index e9dd8dec..e0c1189e 100644
--- a/gst/vaapi/gstvaapipluginbase.c
+++ b/gst/vaapi/gstvaapipluginbase.c
@@ -1456,7 +1456,12 @@ extract_allowed_surface_formats (GstVaapiDisplay * display,
if (direction == GST_PAD_SRC) {
res = gst_vaapi_surface_get_image (surface, image);
} else {
- res = gst_vaapi_surface_put_image (surface, image);
+ if (!gst_vaapi_display_has_driver_quirks (display,
+ GST_VAAPI_DRIVER_QUIRK_NO_CHECK_SURFACE_PUT_IMAGE))
+ res = gst_vaapi_surface_put_image (surface, image);
+ else
+ res = TRUE; /* Let's say it's possible to upload
+ * all formats */
}
if (res)
g_array_append_val (out_formats, img_format);