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

Unified Diff: content/renderer/media/webmediaplayer_ms_compositor.cc

Issue 1772353003: Bug Fix: Remote Video Hang For Apprtc Loopback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms_compositor.cc
diff --git a/content/renderer/media/webmediaplayer_ms_compositor.cc b/content/renderer/media/webmediaplayer_ms_compositor.cc
index 7bd992de607e8b0921affac52f3cc1a0716db05c..e53e074c560087e52582ab53c0105723ed237fc9 100644
--- a/content/renderer/media/webmediaplayer_ms_compositor.cc
+++ b/content/renderer/media/webmediaplayer_ms_compositor.cc
@@ -216,15 +216,12 @@ void WebMediaPlayerMSCompositor::EnqueueFrame(
rendering_frame_buffer_->EnqueueFrame(frame);
const base::TimeTicks now = base::TimeTicks::Now();
- if (now <= last_deadline_max_)
+ if (now <= last_deadline_max_ || !current_frame_)
return;
// This shows vsyncs stops rendering frames. A probable cause is that the
// tab is not in the front. But we still have to let old frames go.
- const base::TimeTicks deadline_max =
- std::max(now, last_deadline_max_ + last_render_length_);
-
- Render(deadline_max - last_render_length_, deadline_max);
+ rendering_frame_buffer_->Reset();
DaleCurtis 2016/03/09 00:42:23 Hmm, is this really what you want? This will drop
qiangchen 2016/03/09 19:55:02 Probably RemoveExpiredFrames(now) will not work. A
}
bool WebMediaPlayerMSCompositor::UpdateCurrentFrame(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698