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

Unified Diff: webrtc/test/fake_encoder.cc

Issue 2477773002: Revert of move deprected functions from EncodedImageCallback and RtpRtcp (Closed)
Patch Set: Silly mistake in webrtc/test/fake_encoder.cc 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 f518ce39192adaca53f2541768b4a7a05648f2bf..065b5299cd2b8a3012e006862b516b4541c26bd7 100644
--- a/webrtc/test/fake_encoder.cc
+++ b/webrtc/test/fake_encoder.cc
@@ -112,10 +112,8 @@ int32_t FakeEncoder::Encode(const VideoFrame& input_image,
encoded.rotation_ = input_image.rotation();
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