diff options
author | Thilo Borgmann <thilo.borgmann@mail.de> | 2019-07-08 13:32:22 +0200 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@mail.de> | 2019-07-08 20:02:41 +0200 |
commit | 3a5f9ab8146d0350349410498ca613f0ffc14da4 (patch) | |
tree | 8830428e351325e751ccc3cd2f426fc57c546f26 /libavdevice/avfoundation.m | |
parent | 7d4df4b3393904e6a7fc0304a3daa086d8fb44a2 (diff) | |
download | ffmpeg-3a5f9ab8146d0350349410498ca613f0ffc14da4.tar.gz |
lavd/avfoundation: Refine some log messages.
Diffstat (limited to 'libavdevice/avfoundation.m')
-rw-r--r-- | libavdevice/avfoundation.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index 321acec10f..17fdd253ef 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -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; } @@ -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); } @@ -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; } |