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
@ -2923,7 +2923,8 @@ gst_v4l2_object_setup_pool (GstV4l2Object * v4l2object, GstCaps * caps)
|
|||||||
mode = GST_V4L2_IO_MMAP;
|
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;
|
goto method_not_supported;
|
||||||
|
|
||||||
/* if still no transport selected, error out */
|
/* if still no transport selected, error out */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user