Nikolay Sivov : evr/presenter: Fix sample queue loop present condition.

Alexandre Julliard julliard at winehq.org
Mon Apr 19 15:38:10 CDT 2021


Module: wine
Branch: master
Commit: 79e2d5d350fc9ebb6599afa91f5e25691766d9ec
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=79e2d5d350fc9ebb6599afa91f5e25691766d9ec

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon Apr 19 16:03:08 2021 +0300

evr/presenter: Fix sample queue loop present condition.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/evr/presenter.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/evr/presenter.c b/dlls/evr/presenter.c
index c86dccc7b44..cbf799b61a1 100644
--- a/dlls/evr/presenter.c
+++ b/dlls/evr/presenter.c
@@ -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)




More information about the wine-cvs mailing list