Index: webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm |
diff --git a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm |
index 8276448e2cdcdf91085d0003e6bde2eab117bda5..538734b0f42537aaf3f3f2b9b0b159edf97f96ae 100644 |
--- a/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm |
+++ b/webrtc/modules/video_coding/codecs/h264/h264_video_toolbox_encoder.mm |
@@ -650,9 +650,10 @@ void H264VideoToolboxEncoder::OnEncodedFrame( |
quality_scaler_.ReportQP(qp); |
} |
- int result = callback_->Encoded(frame, &codec_specific_info, header.get()); |
- if (result != 0) { |
- LOG(LS_ERROR) << "Encode callback failed: " << result; |
+ EncodedImageCallback::Result result = |
+ callback_->OnEncodedImage(frame, &codec_specific_info, header.get()); |
+ if (result.error != EncodedImageCallback::Result::OK) { |
+ LOG(LS_ERROR) << "Encode callback failed: " << result.error; |
return; |
} |
bitrate_adjuster_.Update(frame._size); |