| Index: webrtc/modules/video_coding/main/source/receiver.cc
|
| diff --git a/webrtc/modules/video_coding/main/source/receiver.cc b/webrtc/modules/video_coding/main/source/receiver.cc
|
| index 0707a9c3cde8122cfc95f2f61bfb0e4350d7e410..99bdf4b5900d9250e85f7771bb90d57d04b5a4f1 100644
|
| --- a/webrtc/modules/video_coding/main/source/receiver.cc
|
| +++ b/webrtc/modules/video_coding/main/source/receiver.cc
|
| @@ -94,9 +94,10 @@ void VCMReceiver::TriggerDecoderShutdown() {
|
| render_wait_event_->Set();
|
| }
|
|
|
| -VCMEncodedFrame* VCMReceiver::FrameForDecoding(uint16_t max_wait_time_ms,
|
| - int64_t& next_render_time_ms,
|
| - bool render_timing) {
|
| +VCMEncodedFrame* VCMReceiver::FrameForDecoding(
|
| + uint16_t max_wait_time_ms,
|
| + int64_t& next_render_time_ms,
|
| + bool has_only_one_output_buffer) {
|
| const int64_t start_time_ms = clock_->TimeInMilliseconds();
|
| uint32_t frame_timestamp = 0;
|
| // Exhaust wait time to get a complete frame for decoding.
|
| @@ -140,7 +141,7 @@ VCMEncodedFrame* VCMReceiver::FrameForDecoding(uint16_t max_wait_time_ms,
|
| return NULL;
|
| }
|
|
|
| - if (!render_timing) {
|
| + if (has_only_one_output_buffer) {
|
| // Decode frame as close as possible to the render timestamp.
|
| const int32_t available_wait_time = max_wait_time_ms -
|
| static_cast<int32_t>(clock_->TimeInMilliseconds() - start_time_ms);
|
|
|