mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
v4l2bufferpool: Fix USERPTR map flags
We need to map READ only for output and write only for capture, we where doing the opposite. This fixing USERPTR with glimagesink https://bugzilla.gnome.org/show_bug.cgi?id=730698
This commit is contained in:
parent
d423b9f63e
commit
aff64af8ad
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ gst_v4l2_buffer_pool_import_userptr (GstV4l2BufferPool * pool,
|
|||
if (!gst_v4l2_is_buffer_valid (dest, &group))
|
||||
goto not_our_buffer;
|
||||
|
||||
if (!V4L2_TYPE_IS_OUTPUT (pool->obj->type))
|
||||
if (V4L2_TYPE_IS_OUTPUT (pool->obj->type))
|
||||
flags = GST_MAP_READ;
|
||||
else
|
||||
flags = GST_MAP_WRITE;
|
||||
|
|
Loading…
Reference in a new issue