summaryrefslogtreecommitdiff
path: root/gst-libs/gst
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2017-03-01 14:48:46 +0900
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2017-03-02 02:22:26 +0100
commitc4ef77993184e528f884c5806399b287daa72cef (patch)
tree814fc6a399a9ae0c375fc51d15615d53bc27ce9e /gst-libs/gst
parent6468bf2ddf0463f5ec24a945ac4fad182fecac6f (diff)
libs: window: wayland: handle more VAStatus to use vpp
Since the commit landed https://github.com/01org/intel-vaapi-driver/pull/55, we should consider more returned VAStatus to use vpp. https://bugzilla.gnome.org/show_bug.cgi?id=779400
Diffstat (limited to 'gst-libs/gst')
-rw-r--r--gst-libs/gst/vaapi/gstvaapiwindow_wayland.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c b/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c
index 85a1c437..b299d762 100644
--- a/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c
+++ b/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c
@@ -495,7 +495,9 @@ gst_vaapi_window_wayland_render (GstVaapiWindow * window,
GST_VAAPI_OBJECT_ID (surface),
va_flags & (VA_TOP_FIELD | VA_BOTTOM_FIELD), &buffer);
GST_VAAPI_OBJECT_UNLOCK_DISPLAY (window);
- if (status == VA_STATUS_ERROR_FLAG_NOT_SUPPORTED)
+ if (status == VA_STATUS_ERROR_FLAG_NOT_SUPPORTED ||
+ status == VA_STATUS_ERROR_UNIMPLEMENTED ||
+ status == VA_STATUS_ERROR_INVALID_IMAGE_FORMAT)
need_vpp = TRUE;
else if (!vaapi_check_status (status, "vaGetSurfaceBufferWl()"))
return FALSE;