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
@ -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…
x
Reference in New Issue
Block a user