mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 05:39:51 +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/1991>
This commit is contained in:
parent
c1e639bf08
commit
45b949fb24
1 changed files with 2 additions and 1 deletions
|
@ -3069,7 +3069,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