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

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2068463004: Remove EncodedFrameCallbackAdapter. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months 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/video/video_receive_stream.h ('k') | webrtc/video/video_send_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/video_receive_stream.cc
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc
index a481cb52cb844bac5cf856320318a7de4315fd1d..92f84a0cb8e0d82eede9df651d927a383ccc0a70 100644
--- a/webrtc/video/video_receive_stream.cc
+++ b/webrtc/video/video_receive_stream.cc
@@ -179,7 +179,6 @@ VideoReceiveStream::VideoReceiveStream(
CallStats* call_stats,
VieRemb* remb)
: transport_adapter_(config.rtcp_send_transport),
- encoded_frame_proxy_(config.pre_decode_callback),
config_(std::move(config)),
process_thread_(process_thread),
clock_(Clock::GetRealTimeClock()),
@@ -340,9 +339,9 @@ int32_t VideoReceiveStream::Encoded(
const RTPFragmentationHeader* fragmentation) {
stats_proxy_.OnPreDecode(encoded_image, codec_specific_info);
if (config_.pre_decode_callback) {
- // TODO(asapersson): Remove EncodedFrameCallbackAdapter.
- encoded_frame_proxy_.Encoded(
- encoded_image, codec_specific_info, fragmentation);
+ config_.pre_decode_callback->EncodedFrameCallback(
+ EncodedFrame(encoded_image._buffer, encoded_image._length,
+ encoded_image._frameType));
}
if (kEnableFrameRecording) {
if (!ivf_writer_.get()) {
« no previous file with comments | « webrtc/video/video_receive_stream.h ('k') | webrtc/video/video_send_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698