From abffbfc71f0ab3ce66601f9d3374a5fe4507f8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 9 Sep 2016 12:03:37 +0200 Subject: [PATCH] Revert "vaapivideomemory: load VA Image when mapping to write" This reverts commit c67edea4aba35f16d9e97c78a0b49ad1b590b112. --- gst/vaapi/gstvaapivideomemory.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 813b41502b..3b2b4d8264 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -208,10 +208,8 @@ gst_video_meta_map_vaapi_memory (GstVideoMeta * meta, guint plane, if (!ensure_image (mem)) goto error_ensure_image; - /* Load VA image from surface only on read OR write, not both. - * Refer to bugs #704078 and #704083 */ - if (((flags & GST_MAP_READWRITE) != GST_MAP_READWRITE) - && !ensure_image_is_current (mem)) + // Load VA image from surface + if ((flags & GST_MAP_READ) && !ensure_image_is_current (mem)) goto error_no_current_image; if (!gst_vaapi_image_map (mem->image))