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:
Nicolas Dufresne 2014-05-24 18:43:28 -04:00
parent d423b9f63e
commit aff64af8ad

View file

@ -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;