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

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2089773002: Add EncodedImageCallback::OnEncodedImage(). (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
Index: webrtc/video/video_receive_stream.cc
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc
index ad9beb35e75384801cf03d264f935a7137a9b383..17ba2abfd391c1453ede04827b715c82216af87f 100644
--- a/webrtc/video/video_receive_stream.cc
+++ b/webrtc/video/video_receive_stream.cc
@@ -318,7 +318,7 @@ void VideoReceiveStream::OnFrame(const VideoFrame& video_frame) {
// TODO(asapersson): Consider moving callback from video_encoder.h or
// creating a different callback.
-int32_t VideoReceiveStream::Encoded(
+EncodedImageCallback::Result VideoReceiveStream::OnEncodedImage(
const EncodedImage& encoded_image,
const CodecSpecificInfo* codec_specific_info,
const RTPFragmentationHeader* fragmentation) {
@@ -342,7 +342,9 @@ int32_t VideoReceiveStream::Encoded(
}
}
- return 0;
+ EncodedImageCallback::Result result;
+ result.frame_id = encoded_image._timeStamp;
+ return result;
}
bool VideoReceiveStream::DecodeThreadFunction(void* ptr) {

Powered by Google App Engine
This is Rietveld 408576698