提交 6aa1cfed 编写于 作者: L Lukasz Marek

lavd/fbdev_common: report error during probing fbdev device

Signed-off-by: NLukasz Marek <lukasz.m.luki2@gmail.com>
上级 da833a6d
......@@ -84,8 +84,13 @@ int ff_fbdev_get_device_list(AVDeviceInfoList *device_list)
for (i = 0; i <= 31; 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;
}
if (ioctl(fd, FBIOGET_VSCREENINFO, &varinfo) == -1)
goto fail_device;
if (ioctl(fd, FBIOGET_FSCREENINFO, &fixinfo) == -1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册