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
3a5f9ab8
Commit
3a5f9ab8
authored
Jul 08, 2019
by
Thilo Borgmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/avfoundation: Refine some log messages.
parent
7d4df4b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
avfoundation.m
libavdevice/avfoundation.m
+4
-4
No files found.
libavdevice/avfoundation.m
View file @
3a5f9ab8
...
@@ -316,13 +316,13 @@ static int configure_video_device(AVFormatContext *s, AVCaptureDevice *video_dev
...
@@ -316,13 +316,13 @@ static int configure_video_device(AVFormatContext *s, AVCaptureDevice *video_dev
}
}
if
(
!
selected_format
)
{
if
(
!
selected_format
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Selected video size (%dx%d) is not supported by the device
\n
"
,
av_log
(
s
,
AV_LOG_ERROR
,
"Selected video size (%dx%d) is not supported by the device
.
\n
"
,
ctx
->
width
,
ctx
->
height
);
ctx
->
width
,
ctx
->
height
);
goto
unsupported_format
;
goto
unsupported_format
;
}
}
if
(
!
selected_range
)
{
if
(
!
selected_range
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Selected framerate (%f) is not supported by the device
\n
"
,
av_log
(
s
,
AV_LOG_ERROR
,
"Selected framerate (%f) is not supported by the device
.
\n
"
,
framerate
);
framerate
);
goto
unsupported_format
;
goto
unsupported_format
;
}
}
...
@@ -334,7 +334,7 @@ static int configure_video_device(AVFormatContext *s, AVCaptureDevice *video_dev
...
@@ -334,7 +334,7 @@ static int configure_video_device(AVFormatContext *s, AVCaptureDevice *video_dev
[
video_device
setValue
:
min_frame_duration
forKey
:
@"activeVideoMinFrameDuration"
];
[
video_device
setValue
:
min_frame_duration
forKey
:
@"activeVideoMinFrameDuration"
];
[
video_device
setValue
:
min_frame_duration
forKey
:
@"activeVideoMaxFrameDuration"
];
[
video_device
setValue
:
min_frame_duration
forKey
:
@"activeVideoMaxFrameDuration"
];
}
else
{
}
else
{
av_log
(
s
,
AV_LOG_ERROR
,
"Could not lock device for configuration"
);
av_log
(
s
,
AV_LOG_ERROR
,
"Could not lock device for configuration
.
\n
"
);
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
}
}
...
@@ -908,7 +908,7 @@ static int copy_cvpixelbuffer(AVFormatContext *s,
...
@@ -908,7 +908,7 @@ static int copy_cvpixelbuffer(AVFormatContext *s,
status
=
CVPixelBufferLockBaseAddress
(
image_buffer
,
0
);
status
=
CVPixelBufferLockBaseAddress
(
image_buffer
,
0
);
if
(
status
!=
kCVReturnSuccess
)
{
if
(
status
!=
kCVReturnSuccess
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Could not lock base address: %d
\n
"
,
status
);
av_log
(
s
,
AV_LOG_ERROR
,
"Could not lock base address: %d
(%dx%d)
\n
"
,
status
,
width
,
height
);
return
AVERROR_EXTERNAL
;
return
AVERROR_EXTERNAL
;
}
}
...
...
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