wfreerdp-server: fixed 2 bugs

First a bug where in the case that on windows 8, there is only a mouse pointer update, the frame does not get released. Second an incorrect timeout value was being passed.
This commit is contained in:
Corey C 2012-10-17 18:39:04 -04:00
parent 0d7414fb61
commit 5f713c6b9c
2 changed files with 11 additions and 1 deletions

View File

@ -338,6 +338,16 @@ int wf_dxgi_nextFrame(wfInfo* wfi, UINT timeout)
wfi->framesWaiting = FrameInfo.AccumulatedFrames;
if (FrameInfo.AccumulatedFrames == 0)
{
status = gOutputDuplication->lpVtbl->ReleaseFrame(gOutputDuplication);
if (FAILED(status))
{
_tprintf(_T("Failed to release frame with status=%d\n"), status);
}
}
return 0;
}

View File

@ -282,7 +282,7 @@ BOOL wf_info_have_updates(wfInfo* wfi)
void wf_info_update_changes(wfInfo* wfi)
{
#ifdef WITH_WIN8
wf_dxgi_nextFrame(wfi, wfi->framesPerSecond / 1000);
wf_dxgi_nextFrame(wfi, wfi->framesPerSecond * 1000);
#else
GETCHANGESBUF* buf;