Index: webrtc/video/vie_encoder.cc |
diff --git a/webrtc/video/vie_encoder.cc b/webrtc/video/vie_encoder.cc |
index 30322c298ffcc9b969562164eb59d9daea6191e8..956fd776d4c4be14e35f99d4a1553118643adaa5 100644 |
--- a/webrtc/video/vie_encoder.cc |
+++ b/webrtc/video/vie_encoder.cc |
@@ -193,9 +193,10 @@ int64_t ViEEncoder::time_of_last_frame_activity_ms() { |
return time_of_last_frame_activity_ms_; |
} |
-int32_t ViEEncoder::Encoded(const EncodedImage& encoded_image, |
- const CodecSpecificInfo* codec_specific_info, |
- const RTPFragmentationHeader* fragmentation) { |
+EncodedImageCallback::Result ViEEncoder::OnEncodedImage( |
+ const EncodedImage& encoded_image, |
+ const CodecSpecificInfo* codec_specific_info, |
+ const RTPFragmentationHeader* fragmentation) { |
{ |
rtc::CritScope lock(&data_cs_); |
time_of_last_frame_activity_ms_ = rtc::TimeMillis(); |
@@ -204,11 +205,11 @@ int32_t ViEEncoder::Encoded(const EncodedImage& encoded_image, |
stats_proxy_->OnSendEncodedImage(encoded_image, codec_specific_info); |
} |
- int success = |
- sink_->Encoded(encoded_image, codec_specific_info, fragmentation); |
+ EncodedImageCallback::Result result = |
+ sink_->OnEncodedImage(encoded_image, codec_specific_info, fragmentation); |
overuse_detector_->FrameSent(encoded_image._timeStamp); |
- return success; |
+ return result; |
} |
void ViEEncoder::SendStatistics(uint32_t bit_rate, |