[vlc-devel] [PATCH 10/21] video_output: define force_refresh just before it's used

Steve Lhomme robux4 at ycbcr.xyz
Tue Sep 15 14:36:15 CEST 2020


The values used to define it are not modified in between.
---
 src/video_output/video_output.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 6d5a7e9e669..da661e2e787 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1541,8 +1541,6 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
         }
     }
 
-    bool force_refresh = !display_next_frame && current_needs_redisplay;
-
     if (!first && !current_needs_redisplay && !display_next_frame) {
         return VLC_EGENERIC;
     }
@@ -1561,6 +1559,7 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
         return VLC_EGENERIC;
 
     /* display the picture immediately */
+    bool force_refresh = current_needs_redisplay && !display_next_frame;
     bool is_forced = frame_by_frame || force_refresh || sys->displayed.current->b_force;
     int ret = ThreadDisplayRenderPicture(vout, is_forced);
     return force_refresh ? VLC_EGENERIC : ret;
-- 
2.26.2



More information about the vlc-devel mailing list