Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: webrtc/test/fake_encoder.cc

Issue 2479643002: Revert of Remove deprected functions from EncodedImageCallback and RtpRtcp (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/test/configurable_frame_size_encoder.cc ('k') | webrtc/video/payload_router_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fake_encoder.cc
diff --git a/webrtc/test/fake_encoder.cc b/webrtc/test/fake_encoder.cc
index 4cf45688c68b23ce48af32b7e19101cd4bffce6c..ac1c6dec691ea2f4522722e160dbabd5c988f529 100644
--- a/webrtc/test/fake_encoder.cc
+++ b/webrtc/test/fake_encoder.cc
@@ -111,10 +111,8 @@
encoded._encodedHeight = config_.simulcastStream[i].height;
RTC_DCHECK(callback_ != NULL);
specifics.codec_name = ImplementationName();
- if (callback_->OnEncodedImage(encoded, &specifics, NULL).error !=
- EncodedImageCallback::Result::OK) {
+ if (callback_->Encoded(encoded, &specifics, NULL) != 0)
return -1;
- }
bits_available -= std::min(encoded._length * 8, bits_available);
}
return 0;
« no previous file with comments | « webrtc/test/configurable_frame_size_encoder.cc ('k') | webrtc/video/payload_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698