diff options
author | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-09-09 12:03:37 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-09-12 12:45:01 +0200 |
commit | abffbfc71f0ab3ce66601f9d3374a5fe4507f8af (patch) | |
tree | 7908f7800c942f56e70d19b398cb5b7a9f697139 | |
parent | 7f4374f6866c7639006952f38f5692c6cce4a016 (diff) |
Revert "vaapivideomemory: load VA Image when mapping to write"
This reverts commit c67edea4aba35f16d9e97c78a0b49ad1b590b112.
-rw-r--r-- | gst/vaapi/gstvaapivideomemory.c | 6 |
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)) |