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

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2744013002: Updates to VCMDecodedFrameCallback, VideoReceiver and a few related classes/tests. (Closed)
Patch Set: Format + assert->DCHECK and require callback in decode Created 3 years, 9 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 eb2404c174ed749baef44638c831249a0499a415..47e8c1efad5dda04eee9e4f00f47a88334a3bbe6 100644
--- a/webrtc/video/video_receive_stream.cc
+++ b/webrtc/video/video_receive_stream.cc
@@ -481,8 +481,10 @@ bool VideoReceiveStream::Decode() {
video_coding::FrameBuffer::ReturnReason res =
frame_buffer_->NextFrame(kMaxWaitForFrameMs, &frame);
- if (res == video_coding::FrameBuffer::ReturnReason::kStopped)
+ if (res == video_coding::FrameBuffer::ReturnReason::kStopped) {
+ video_receiver_.DecodingStopped();
return false;
+ }
if (frame) {
if (video_receiver_.Decode(frame.get()) == VCM_OK)

Powered by Google App Engine
This is Rietveld 408576698