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

Unified Diff: remoting/client/plugin/pepper_video_renderer_3d.cc

Issue 2692703002: CRD Webapp intermittently crashes on some machines (Closed)
Patch Set: Created 3 years, 10 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: remoting/client/plugin/pepper_video_renderer_3d.cc
diff --git a/remoting/client/plugin/pepper_video_renderer_3d.cc b/remoting/client/plugin/pepper_video_renderer_3d.cc
index aff694a2a054a778ee4f28273e9d19eb40196ac9..a4a8bbbd7dd3462cdd180f36cb851ee37e503c7c 100644
--- a/remoting/client/plugin/pepper_video_renderer_3d.cc
+++ b/remoting/client/plugin/pepper_video_renderer_3d.cc
@@ -333,8 +333,9 @@ void PepperVideoRenderer3D::OnDecodeDone(int32_t result) {
}
void PepperVideoRenderer3D::GetNextPicture() {
- if (get_picture_pending_)
+ if (get_picture_pending_ || decoded_frames_.empty()) {
Sergey Ulanov 2017/02/13 20:46:57 Add a comment to explain why we need to check deco
return;
+ }
int32_t result =
video_decoder_.GetPicture(callback_factory_.NewCallbackWithOutput(
« 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