diff --git a/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm b/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm index 8460228a76..859bf033ac 100644 --- a/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm +++ b/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoDecoderH264.mm @@ -242,6 +242,7 @@ void decompressionOutputCallback(void *decoderRef, nullptr, _videoFormat, nullptr, attributes, &record, &_decompressionSession); CFRelease(attributes); if (status != noErr) { + RTC_LOG(LS_ERROR) << "Failed to create decompression session: " << status; [self destroyDecompressionSession]; return WEBRTC_VIDEO_CODEC_ERROR; } diff --git a/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm b/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm index 792dad5ef2..39620d2012 100644 --- a/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm +++ b/sdk/objc/Framework/Classes/VideoToolbox/RTCVideoEncoderH264.mm @@ -678,7 +678,7 @@ CFStringRef ExtractProfile(webrtc::SdpVideoFormat videoFormat) { CFRelease(dataRateLimits); } 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; @@ -695,7 +695,7 @@ CFStringRef ExtractProfile(webrtc::SdpVideoFormat videoFormat) { timestamp:(uint32_t)timestamp rotation:(RTCVideoRotation)rotation { if (status != noErr) { - RTC_LOG(LS_ERROR) << "H264 encode failed."; + RTC_LOG(LS_ERROR) << "H264 encode failed with code: " << status; return; } if (infoFlags & kVTEncodeInfo_FrameDropped) {