[vlc-commits] [Git][videolan/vlc][master] vout: remove vout_chrono_Clean()

Jean-Baptiste Kempf gitlab at videolan.org
Wed Jun 16 05:36:00 UTC 2021



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
9020b03d by Romain Vimont at 2021-06-15T15:24:50+00:00
vout: remove vout_chrono_Clean()

This function did nothing.

- - - - -


2 changed files:

- src/video_output/chrono.h
- src/video_output/video_output.c


Changes:

=====================================
src/video_output/chrono.h
=====================================
@@ -47,10 +47,6 @@ static inline void vout_chrono_Init(vout_chrono_t *chrono, int shift, vlc_tick_t
 
     chrono->start = VLC_TICK_INVALID;
 }
-static inline void vout_chrono_Clean(vout_chrono_t *chrono)
-{
-    VLC_UNUSED(chrono);
-}
 static inline void vout_chrono_Start(vout_chrono_t *chrono)
 {
     chrono->start = vlc_tick_now();
@@ -83,9 +79,7 @@ static inline void vout_chrono_Stop(vout_chrono_t *chrono)
 }
 static inline void vout_chrono_Reset(vout_chrono_t *chrono)
 {
-    vout_chrono_t ch = *chrono;
-    vout_chrono_Clean(chrono);
-    vout_chrono_Init(chrono, ch.shift, ch.avg_initial);
+    vout_chrono_Init(chrono, chrono->shift, chrono->avg_initial);
 }
 
 #endif


=====================================
src/video_output/video_output.c
=====================================
@@ -1911,8 +1911,6 @@ void vout_Close(vout_thread_t *vout)
 
     vout_IntfDeinit(VLC_OBJECT(vout));
     vout_snapshot_End(sys->snapshot);
-    vout_chrono_Clean(&sys->render);
-    vout_chrono_Clean(&sys->static_filter);
 
     if (sys->spu)
         spu_Destroy(sys->spu);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9020b03dcc0a070a570016dd418f9af2ec8a754c

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9020b03dcc0a070a570016dd418f9af2ec8a754c
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list