lavd/fbdev_enc: fix not closed handles

Fixes CID 1206651

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Lukasz Marek 2014-04-27 16:21:54 +02:00 committed by Michael Niedermayer
parent b3c0d010c3
commit 4930e529bf
1 changed files with 2 additions and 1 deletions

View File

@ -226,7 +226,8 @@ static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_li
device_list->default_device = device_list->nb_devices - 1;
default_device = NULL;
}
close(fd);
fd = -1;
continue;
fail_device: