[vlc-commits] video_output: don't set a value on unused variable

Steve Lhomme git at videolan.org
Tue Oct 20 11:03:00 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 16 13:14:24 2020 +0200| [71557e65b19ac2409f964dad379f91d06c3c85b2] | committer: Steve Lhomme

video_output: don't set a value on unused variable

At this stage paused will not be used anymore. No need to set the value.

Only keep the "else" part of the "if".

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71557e65b19ac2409f964dad379f91d06c3c85b2
---

 src/video_output/video_output.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index aa7056a5f2..0f4e5c7992 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1502,13 +1502,7 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
         const vlc_tick_t next_system_pts =
             vlc_clock_ConvertToSystem(sys->clock, system_now,
                                       sys->displayed.next->date, sys->rate);
-        if (unlikely(next_system_pts == INT64_MAX))
-        {
-            /* The clock was just paused, don't display the next frame (keep
-             * the current one). */
-            paused = true;
-        }
-        else
+        if (likely(next_system_pts != INT64_MAX))
         {
             date_next = next_system_pts - render_delay;
             if (date_next <= system_now)



More information about the vlc-commits mailing list