mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 23:14:46 +00:00
dmabufallocator: Fix build if LINUX_DMA_BUF_H is missing
This commit is contained in:
parent
8ee306eb3f
commit
681f41978a
1 changed files with 2 additions and 1 deletions
|
@ -48,9 +48,10 @@ static gpointer
|
|||
gst_dmabuf_mem_map (GstMemory * gmem, GstMapInfo * info, gsize maxsize)
|
||||
{
|
||||
GstAllocator *allocator = gmem->allocator;
|
||||
gpointer ret;
|
||||
|
||||
#ifdef HAVE_LINUX_DMA_BUF_H
|
||||
struct dma_buf_sync sync = { DMA_BUF_SYNC_START };
|
||||
gpointer ret;
|
||||
|
||||
if (info->flags & GST_MAP_READ)
|
||||
sync.flags |= DMA_BUF_SYNC_READ;
|
||||
|
|
Loading…
Reference in a new issue