mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue