From 5d7d4e0d9bca8a81b48023898bfeb18dc447b0f7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 23 Apr 2012 16:10:17 +0200 Subject: [PATCH] v4l2: mark memory as no-share We don't support sharing our mmapped memory so mark it as NO_SHARE. --- sys/v4l2/gstv4l2bufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 80f41c75e4..038f0eb231 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -184,7 +184,7 @@ gst_v4l2_buffer_pool_alloc_buffer (GstBufferPool * bpool, GstBuffer ** buffer, goto mmap_failed; gst_buffer_append_memory (newbuf, - gst_memory_new_wrapped (0, + gst_memory_new_wrapped (GST_MEMORY_FLAG_NO_SHARE, meta->mem, meta->vbuffer.length, 0, meta->vbuffer.length, NULL, NULL));