adding a wait on the decode thread when no frames are available

Review URL: http://webrtc-codereview.appspot.com/246009

git-svn-id: http://webrtc.googlecode.com/svn/trunk@807 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@webrtc.org
2011-10-25 00:20:54 +00:00
parent a412924c0e
commit f31826e17b
4 changed files with 16 additions and 4 deletions

View File

@@ -1071,7 +1071,9 @@ VideoCodingModuleImpl::Decode(WebRtc_UWord16 maxWaitTimeMs)
}
}
if (frame != NULL)
if (frame == NULL)
return VCM_FRAME_NOT_READY;
else
{
CriticalSectionScoped cs(_receiveCritSect);