evr/presenter: Fix sample queue loop present condition.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-04-19 16:03:08 +03:00 committed by Alexandre Julliard
parent 9973081f70
commit 79e2d5d350
1 changed files with 2 additions and 1 deletions

View File

@ -541,13 +541,14 @@ static void video_presenter_check_queue(struct video_presenter *presenter,
{
LONGLONG pts, clocktime, delta;
unsigned int wait = 0;
BOOL present = TRUE;
IMFSample *sample;
MFTIME systime;
BOOL present;
HRESULT hr;
while (video_presenter_sample_queue_pop(presenter, &sample))
{
present = TRUE;
wait = 0;
if (presenter->clock)