diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-10-18 20:22:35 +0200 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-10-21 22:57:32 +0200 |
commit | 6aa1cfed0b2266bb2340644c9e617c69f436fa5c (patch) | |
tree | 661d8b7451c5257d9e1603ea7b5b317a3da08ac2 /libavdevice | |
parent | da833a6d090f95f607f9c8cb00c2b55740d9120c (diff) | |
download | ffmpeg-6aa1cfed0b2266bb2340644c9e617c69f436fa5c.tar.gz |
lavd/fbdev_common: report error during probing fbdev device
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/fbdev_common.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c index 634780d588..713e4fdeab 100644 --- a/libavdevice/fbdev_common.c +++ b/libavdevice/fbdev_common.c @@ -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) |