mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
v4l2object: Only allow DMABuf export for STREAMING device
DMABuf exportation requires mmap, which requires STREAMING capabilities. https://bugzilla.gnome.org/show_bug.cgi?id=583890
This commit is contained in:
parent
90a70e08b7
commit
24368c1162
1 changed files with 2 additions and 1 deletions
|
@ -2923,7 +2923,8 @@ gst_v4l2_object_setup_pool (GstV4l2Object * v4l2object, GstCaps * caps)
|
|||
mode = GST_V4L2_IO_MMAP;
|
||||
}
|
||||
}
|
||||
} else if (v4l2object->req_mode == GST_V4L2_IO_MMAP)
|
||||
} else if (v4l2object->req_mode == GST_V4L2_IO_MMAP ||
|
||||
v4l2object->req_mode == GST_V4L2_IO_DMABUF)
|
||||
goto method_not_supported;
|
||||
|
||||
/* if still no transport selected, error out */
|
||||
|
|
Loading…
Reference in a new issue