[vlc-devel] [PATCH v4 6/9] es_out: constify p_master_clock

Thomas Guillem thomas at gllm.fr
Thu Apr 1 14:00:29 UTC 2021


Since it's used as a "weak ref" and should not be accessed directly.
---
 src/input/es_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 7dbb5d9a007..99bfd8aa59a 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -77,7 +77,7 @@ typedef struct
     /* Clock for this program */
     input_clock_t    *p_input_clock;
     vlc_clock_main_t *p_main_clock;
-    vlc_clock_t      *p_master_clock;
+    const vlc_clock_t *p_master_clock;
 
     vlc_tick_t i_last_pcr;
 
-- 
2.30.0



More information about the vlc-devel mailing list