mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
Revert "vaapivideomemory: load VA Image when mapping to write"
This reverts commit c67edea4ab
.
This commit is contained in:
parent
7f4374f686
commit
abffbfc71f
1 changed files with 2 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue