Fix a time control bug, that the VCMReceiver::FrameForDecoding may over sleep.
Remark: a unit test to verify VCMReiceiver::FrameForDecoding will be in a separate CL. BUG=4726 R=stefan@webrtc.org, wtc@chromium.org Review URL: https://webrtc-codereview.appspot.com/53619004 Cr-Commit-Position: refs/heads/master@{#9362}
This commit is contained in:
@ -142,7 +142,7 @@ VCMEncodedFrame* VCMReceiver::FrameForDecoding(uint16_t max_wait_time_ms,
|
||||
// We're not allowed to wait until the frame is supposed to be rendered,
|
||||
// waiting as long as we're allowed to avoid busy looping, and then return
|
||||
// NULL. Next call to this function might return the frame.
|
||||
render_wait_event_->Wait(max_wait_time_ms);
|
||||
render_wait_event_->Wait(new_max_wait_time);
|
||||
return NULL;
|
||||
}
|
||||
// Wait until it's time to render.
|
||||
|
||||
Reference in New Issue
Block a user