mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
v4l2allocator: Valid FD are bigger or equal to zero
This commit is contained in:
parent
d3383f9d4c
commit
a114a32d22
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ _v4l2mem_dispose (GstV4l2Memory * mem)
|
|||
static void
|
||||
_v4l2mem_free (GstV4l2Memory * mem)
|
||||
{
|
||||
if (mem->dmafd > 0)
|
||||
if (mem->dmafd >= 0)
|
||||
close (mem->dmafd);
|
||||
g_slice_free (GstV4l2Memory, mem);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue