From 2d28aff78504542138a5568a5d3e7d4f3f4c0a5e Mon Sep 17 00:00:00 2001 From: "stefan@webrtc.org" Date: Thu, 27 Oct 2011 16:13:18 +0000 Subject: [PATCH] Workaround for an issue where frames are grabbed for decoding prematurely. BUG= TEST= Review URL: http://webrtc-codereview.appspot.com/240013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@823 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/video_coding/main/source/receiver.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/video_coding/main/source/receiver.cc b/src/modules/video_coding/main/source/receiver.cc index 10227f053..0884abd61 100644 --- a/src/modules/video_coding/main/source/receiver.cc +++ b/src/modules/video_coding/main/source/receiver.cc @@ -254,12 +254,6 @@ VCMReceiver::FrameForDecoding(WebRtc_UWord16 maxWaitTimeMs, return NULL; } - if (frame == NULL && VCM_MIN(waitTimeMs, maxWaitTimeMs) == 0) - { - // No time to wait for a complete frame, - // check if we have an incomplete - frame = _jitterBuffer.GetFrameForDecoding(); - } if (frame == NULL) { // Wait for a complete frame