mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 21:36:35 +00:00
v4l2object: Avoid crash on early failure
This happens while an external error lead to an early shutdown. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1567>
This commit is contained in:
parent
ec9585d148
commit
d394b8b4bd
1 changed files with 2 additions and 1 deletions
|
@ -3078,7 +3078,8 @@ gst_v4l2_object_is_dmabuf_supported (GstV4l2Object * v4l2object)
|
|||
.flags = O_CLOEXEC | O_RDWR,
|
||||
};
|
||||
|
||||
if (v4l2object->fmtdesc->flags & V4L2_FMT_FLAG_EMULATED) {
|
||||
if (v4l2object->fmtdesc &&
|
||||
v4l2object->fmtdesc->flags & V4L2_FMT_FLAG_EMULATED) {
|
||||
GST_WARNING_OBJECT (v4l2object->dbg_obj,
|
||||
"libv4l2 converter detected, disabling DMABuf");
|
||||
ret = FALSE;
|
||||
|
|
Loading…
Reference in a new issue