projects
/
platform
/
upstream
/
gstreamer-vaapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vaapivideomemory: forbid R/W mappings if non direct-rendering mode.
[platform/upstream/gstreamer-vaapi.git]
/
gst
/
vaapi
/
gstvaapivideomemory.c
diff --git
a/gst/vaapi/gstvaapivideomemory.c
b/gst/vaapi/gstvaapivideomemory.c
index
98d5004
..
1788125
100644
(file)
--- a/
gst/vaapi/gstvaapivideomemory.c
+++ b/
gst/vaapi/gstvaapivideomemory.c
@@
-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_
READ
WRITE &&
!mem->use_direct_rendering)
goto error_unsupported_map;