Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
6aa1cfed
Commit
6aa1cfed
authored
Oct 18, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/fbdev_common: report error during probing fbdev device
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
da833a6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
fbdev_common.c
libavdevice/fbdev_common.c
+6
-1
No files found.
libavdevice/fbdev_common.c
View file @
6aa1cfed
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment