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:
parent
12ff0a4797
commit
f5da12bcf5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user