Log video toolbox error codes
Log OSStatus returned by VideoToolbox to simplify debugging. Bug: webrtc:9134 Change-Id: Ib9e4f208a823d4be58324dd1f9dde833cba8afbe Reviewed-on: https://webrtc-review.googlesource.com/69080 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22823}
This commit is contained in:

committed by
Commit Bot

parent
6557d0c231
commit
27af5db5e0
@ -242,6 +242,7 @@ void decompressionOutputCallback(void *decoderRef,
|
|||||||
nullptr, _videoFormat, nullptr, attributes, &record, &_decompressionSession);
|
nullptr, _videoFormat, nullptr, attributes, &record, &_decompressionSession);
|
||||||
CFRelease(attributes);
|
CFRelease(attributes);
|
||||||
if (status != noErr) {
|
if (status != noErr) {
|
||||||
|
RTC_LOG(LS_ERROR) << "Failed to create decompression session: " << status;
|
||||||
[self destroyDecompressionSession];
|
[self destroyDecompressionSession];
|
||||||
return WEBRTC_VIDEO_CODEC_ERROR;
|
return WEBRTC_VIDEO_CODEC_ERROR;
|
||||||
}
|
}
|
||||||
|
@ -678,7 +678,7 @@ CFStringRef ExtractProfile(webrtc::SdpVideoFormat videoFormat) {
|
|||||||
CFRelease(dataRateLimits);
|
CFRelease(dataRateLimits);
|
||||||
}
|
}
|
||||||
if (status != noErr) {
|
if (status != noErr) {
|
||||||
RTC_LOG(LS_ERROR) << "Failed to set data rate limit";
|
RTC_LOG(LS_ERROR) << "Failed to set data rate limit with code: " << status;
|
||||||
}
|
}
|
||||||
|
|
||||||
_encoderBitrateBps = bitrateBps;
|
_encoderBitrateBps = bitrateBps;
|
||||||
@ -695,7 +695,7 @@ CFStringRef ExtractProfile(webrtc::SdpVideoFormat videoFormat) {
|
|||||||
timestamp:(uint32_t)timestamp
|
timestamp:(uint32_t)timestamp
|
||||||
rotation:(RTCVideoRotation)rotation {
|
rotation:(RTCVideoRotation)rotation {
|
||||||
if (status != noErr) {
|
if (status != noErr) {
|
||||||
RTC_LOG(LS_ERROR) << "H264 encode failed.";
|
RTC_LOG(LS_ERROR) << "H264 encode failed with code: " << status;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (infoFlags & kVTEncodeInfo_FrameDropped) {
|
if (infoFlags & kVTEncodeInfo_FrameDropped) {
|
||||||
|
Reference in New Issue
Block a user