mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
v4l2bufferpool: Disable create_buf with libv4l2
Libv4l2 does not work with CREATE_BUFS. Instead of failing on random error caused by libv4l2, disable CREATE_BUFS when an emulated format is detected.
This commit is contained in:
parent
1fe4a19dc2
commit
f6259e96c7
1 changed files with 8 additions and 0 deletions
|
@ -484,6 +484,14 @@ gst_v4l2_buffer_pool_set_config (GstBufferPool * bpool, GstStructure * config)
|
|||
break;
|
||||
}
|
||||
|
||||
/* libv4l2 conversion code does not handle CREATE_BUFS, and may lead to
|
||||
* instability and crash, disable it for now */
|
||||
if (can_allocate && obj->fmtdesc->flags & V4L2_FMT_FLAG_EMULATED) {
|
||||
GST_WARNING_OBJECT (pool,
|
||||
"libv4l2 converter detected, disabling CREATE_BUFS");
|
||||
can_allocate = FALSE;
|
||||
}
|
||||
|
||||
if (min_buffers < GST_V4L2_MIN_BUFFERS) {
|
||||
updated = TRUE;
|
||||
min_buffers = GST_V4L2_MIN_BUFFERS;
|
||||
|
|
Loading…
Reference in a new issue