diff options
-rw-r--r-- | sys/v4l2codecs/gstv4l2codecallocator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/v4l2codecs/gstv4l2codecallocator.c b/sys/v4l2codecs/gstv4l2codecallocator.c index d18e8bb70..e2886989c 100644 --- a/sys/v4l2codecs/gstv4l2codecallocator.c +++ b/sys/v4l2codecs/gstv4l2codecallocator.c @@ -90,7 +90,8 @@ gst_v4l2_codec_buffer_new (GstAllocator * allocator, GstV4l2Decoder * decoder, buf->index = index; buf->num_mems = num_mems; for (i = 0; i < buf->num_mems; i++) { - GstMemory *mem = gst_dmabuf_allocator_alloc (allocator, fds[i], sizes[i]); + GstMemory *mem = gst_fd_allocator_alloc (allocator, fds[i], sizes[i], + GST_FD_MEMORY_FLAG_KEEP_MAPPED); gst_memory_resize (mem, offsets[i], sizes[i] - offsets[i]); GST_MINI_OBJECT (mem)->dispose = gst_v4l2_codec_allocator_release; |