Commit a114a32d authored by Nicolas Dufresne's avatar Nicolas Dufresne

v4l2allocator: Valid FD are bigger or equal to zero

parent d3383f9d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment