mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavd/fbdev_common: report error during probing fbdev device
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
parent
da833a6d09
commit
6aa1cfed0b
@ -84,8 +84,13 @@ int ff_fbdev_get_device_list(AVDeviceInfoList *device_list)
|
|||||||
for (i = 0; i <= 31; i++) {
|
for (i = 0; i <= 31; i++) {
|
||||||
snprintf(device_file, sizeof(device_file), "/dev/fb%d", i);
|
snprintf(device_file, sizeof(device_file), "/dev/fb%d", i);
|
||||||
|
|
||||||
if ((fd = avpriv_open(device_file, O_RDWR)) < 0)
|
if ((fd = avpriv_open(device_file, O_RDWR)) < 0) {
|
||||||
|
int err = AVERROR(errno);
|
||||||
|
if (err != AVERROR(ENOENT))
|
||||||
|
av_log(NULL, AV_LOG_ERROR, "Could not open framebuffer device '%s': %s\n",
|
||||||
|
device_file, av_err2str(err));
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
if (ioctl(fd, FBIOGET_VSCREENINFO, &varinfo) == -1)
|
if (ioctl(fd, FBIOGET_VSCREENINFO, &varinfo) == -1)
|
||||||
goto fail_device;
|
goto fail_device;
|
||||||
if (ioctl(fd, FBIOGET_FSCREENINFO, &fixinfo) == -1)
|
if (ioctl(fd, FBIOGET_FSCREENINFO, &fixinfo) == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user