Fix for WebRTC issue 64, removed the screenupdate thread and events from start render as they are already created in the ctor.

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@890 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
vikasmarwaha@webrtc.org 2011-11-04 23:22:51 +00:00
parent 040cb71e0a
commit a5c4c1f1d4

View File

@ -450,9 +450,6 @@ WebRtc_Word32 VideoRenderNSOpenGL::StartRender()
return 0;
}
WEBRTC_TRACE(kTraceDebug, kTraceVideoRenderer, _id, "Starting screenUpdateThread and screenUpdateEvent");
_screenUpdateThread = ThreadWrapper::CreateThread(ScreenUpdateThreadProc, this, kRealtimePriority);
_screenUpdateEvent = EventWrapper::Create();
if (!_screenUpdateThread)
{
@ -461,9 +458,6 @@ WebRtc_Word32 VideoRenderNSOpenGL::StartRender()
return -1;
}
_screenUpdateThread->Start(_threadID);
_screenUpdateEvent->StartTimer(true, 1000/MONITOR_FREQ);
UnlockAGLCntx();
return 0;