summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-09-09 12:03:37 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-09-12 12:45:01 +0200
commitabffbfc71f0ab3ce66601f9d3374a5fe4507f8af (patch)
tree7908f7800c942f56e70d19b398cb5b7a9f697139
parent7f4374f6866c7639006952f38f5692c6cce4a016 (diff)
Revert "vaapivideomemory: load VA Image when mapping to write"
-rw-r--r--gst/vaapi/gstvaapivideomemory.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c
index 813b4150..3b2b4d82 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))