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:
parent
0d7414fb61
commit
5f713c6b9c
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user