[vlc-devel] [PATCH 10/17] clock: remove vlc_clock_main_SetFirstPcr

Thomas Guillem thomas at gllm.fr
Mon Feb 15 10:15:05 UTC 2021


Not used anymore, cf. ddda7e520945a63e58651c189c8a26b88f6ec3f6
---
 src/clock/clock.c | 17 -----------------
 src/clock/clock.h |  2 --
 2 files changed, 19 deletions(-)

diff --git a/src/clock/clock.c b/src/clock/clock.c
index 32e1a6c721e..1a2b451e2e6 100644
--- a/src/clock/clock.c
+++ b/src/clock/clock.c
@@ -52,7 +52,6 @@ struct vlc_clock_main_t
 
     vlc_tick_t pause_date;
 
-    clock_point_t first_pcr;
     vlc_tick_t output_dejitter; /* Delay used to absorb the output clock jitter */
     vlc_tick_t input_dejitter; /* Delay used to absorb the input jitter */
     bool abort;
@@ -346,8 +345,6 @@ vlc_clock_main_t *vlc_clock_main_New(void)
     main_clock->offset = VLC_TICK_INVALID;
     main_clock->delay = 0;
 
-    main_clock->first_pcr =
-        clock_point_Create(VLC_TICK_INVALID, VLC_TICK_INVALID);
     main_clock->last = clock_point_Create(VLC_TICK_INVALID, VLC_TICK_INVALID);
 
     main_clock->pause_date = VLC_TICK_INVALID;
@@ -373,17 +370,6 @@ void vlc_clock_main_Reset(vlc_clock_main_t *main_clock)
 {
     vlc_mutex_lock(&main_clock->lock);
     vlc_clock_main_reset(main_clock);
-    main_clock->first_pcr =
-        clock_point_Create(VLC_TICK_INVALID, VLC_TICK_INVALID);
-    vlc_mutex_unlock(&main_clock->lock);
-}
-
-void vlc_clock_main_SetFirstPcr(vlc_clock_main_t *main_clock,
-                                vlc_tick_t system_now, vlc_tick_t ts)
-{
-    vlc_mutex_lock(&main_clock->lock);
-    if (main_clock->first_pcr.system == VLC_TICK_INVALID)
-        main_clock->first_pcr = clock_point_Create(system_now, ts);
     vlc_mutex_unlock(&main_clock->lock);
 }
 
@@ -423,9 +409,6 @@ void vlc_clock_main_ChangePause(vlc_clock_main_t *main_clock, vlc_tick_t now,
             main_clock->last.system += delay;
             main_clock->offset += delay;
         }
-        if (main_clock->first_pcr.system != VLC_TICK_INVALID)
-            main_clock->first_pcr.system += delay;
-
         main_clock->pause_date = VLC_TICK_INVALID;
         vlc_cond_broadcast(&main_clock->cond);
     }
diff --git a/src/clock/clock.h b/src/clock/clock.h
index ce8107935ea..98a6bdf5ed8 100644
--- a/src/clock/clock.h
+++ b/src/clock/clock.h
@@ -74,8 +74,6 @@ void vlc_clock_main_Abort(vlc_clock_main_t *main_clock);
  */
 void vlc_clock_main_Reset(vlc_clock_main_t *main_clock);
 
-void vlc_clock_main_SetFirstPcr(vlc_clock_main_t *main_clock,
-                                vlc_tick_t system_now, vlc_tick_t ts);
 void vlc_clock_main_SetInputDejitter(vlc_clock_main_t *main_clock,
                                      vlc_tick_t delay);
 
-- 
2.30.0



More information about the vlc-devel mailing list