Chromium Code Reviews| 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( |