Skip to content

Commit

Permalink
lavd/avfoundation: Refine some log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
thiloborgmann committed Jul 8, 2019
1 parent 7d4df4b commit 3a5f9ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libavdevice/avfoundation.m
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,13 @@ static int configure_video_device(AVFormatContext *s, AVCaptureDevice *video_dev
}

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);
goto unsupported_format;
}

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);
goto unsupported_format;
}
Expand All @@ -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:@"activeVideoMaxFrameDuration"];
} 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);
}

Expand Down Expand Up @@ -908,7 +908,7 @@ static int copy_cvpixelbuffer(AVFormatContext *s,

status = CVPixelBufferLockBaseAddress(image_buffer, 0);
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;
}

Expand Down

0 comments on commit 3a5f9ab

Please sign in to comment.