v4l2decoder: Fix file descriptor leak

A copy paste error was leading to file descriptor leak. This was detected by
Coverity.

CID 1461285
This commit is contained in:
Nicolas Dufresne 2020-04-07 17:10:08 -04:00
parent 12ff0a4797
commit f5da12bcf5

View file

@ -160,7 +160,7 @@ gst_v4l2_decoder_close (GstV4l2Decoder * self)
if (self->media_fd)
close (self->media_fd);
if (self->video_fd)
close (self->media_fd);
close (self->video_fd);
self->media_fd = 0;
self->video_fd = 0;