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
bc739993
Commit
bc739993
authored
Jul 24, 2016
by
Josh de Kock
Committed by
Diego Biurrun
Sep 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libdc1394: Distinguish between enumeration errors and no cameras found
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
df379502
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
libdc1394.c
libavdevice/libdc1394.c
+8
-3
No files found.
libavdevice/libdc1394.c
View file @
bc739993
...
@@ -299,9 +299,14 @@ static int dc1394_v2_read_header(AVFormatContext *c)
...
@@ -299,9 +299,14 @@ static int dc1394_v2_read_header(AVFormatContext *c)
/* Now let us prep the hardware. */
/* Now let us prep the hardware. */
dc1394
->
d
=
dc1394_new
();
dc1394
->
d
=
dc1394_new
();
dc1394_camera_enumerate
(
dc1394
->
d
,
&
list
);
if
(
dc1394_camera_enumerate
(
dc1394
->
d
,
&
list
)
!=
DC1394_SUCCESS
||
!
list
)
{
if
(
!
list
||
list
->
num
==
0
)
{
av_log
(
c
,
AV_LOG_ERROR
,
"Unable to look for an IIDC camera.
\n
"
);
av_log
(
c
,
AV_LOG_ERROR
,
"Unable to look for an IIDC camera
\n\n
"
);
goto
out
;
}
if
(
list
->
num
==
0
)
{
av_log
(
c
,
AV_LOG_ERROR
,
"No cameras found.
\n
"
);
dc1394_camera_free_list
(
list
);
goto
out
;
goto
out
;
}
}
...
...
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