mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
vaapivideomemory: forbid R/W mappings if non direct-rendering mode.
Disable read-write mappings if "direct-rendering" is not supported. Since the ordering of read and write operations is not specified, this would require to always download the VA surface on _map(), then commit the temporary VA image back to the VA surface on _unmap(). Some SW decoding plug-in elements still use R/W mappings though. https://bugzilla.gnome.org/show_bug.cgi?id=733242
This commit is contained in:
parent
f2ce28e4b7
commit
c3643b42a4
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ gst_video_meta_map_vaapi_memory(GstVideoMeta *meta, guint plane,
|
|||
goto error_ensure_image;
|
||||
|
||||
// Check that we can actually map the surface, or image
|
||||
if ((flags & GST_MAP_READWRITE) == GST_MAP_WRITE &&
|
||||
if ((flags & GST_MAP_READWRITE) == GST_MAP_READWRITE &&
|
||||
!mem->use_direct_rendering)
|
||||
goto error_unsupported_map;
|
||||
|
||||
|
|
Loading…
Reference in a new issue