v4l2allocator: Valid FD are bigger or equal to zero

This commit is contained in:
Nicolas Dufresne 2014-04-17 21:45:58 -04:00
parent d3383f9d4c
commit a114a32d22

View file

@ -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);
}