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

Unified Diff: webrtc/video/video_stream_decoder.cc

Issue 2361803003: Add logging statements to places where the frame might be dropped in WebRTC pipeline. (Closed)
Patch Set: Add logging for too many incoming frames stored in VideoRenderFrames. Created 4 years, 3 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_stream_decoder.cc
diff --git a/webrtc/video/video_stream_decoder.cc b/webrtc/video/video_stream_decoder.cc
index 6797353161dce52cb74a8d8dac1370a7bce871c1..cf77833a5182e3170225ab1445ea12f5e311f7c4 100644
--- a/webrtc/video/video_stream_decoder.cc
+++ b/webrtc/video/video_stream_decoder.cc
@@ -86,6 +86,8 @@ int32_t VideoStreamDecoder::FrameToRender(VideoFrame& video_frame) { // NOLINT
if (incoming_video_stream_)
incoming_video_stream_->OnFrame(video_frame);
+ else
+ LOG(LS_INFO) << "Dropping frame because incoming_video_stream_ is NULL.";
stefan-webrtc 2016/09/26 10:44:09 AFAICT this can never happen as incoming_video_str
sakal 2016/09/26 11:23:59 It looks like this class is instantiated here: htt
stefan-webrtc 2016/09/26 11:39:22 Seems like it's always being set outside of Call t
magjed_webrtc 2016/09/27 15:06:11 There is probably no reason to not attach a render
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698