[vlc-devel] [PATCH] core: add --clock-master long description

Thomas Guillem thomas at gllm.fr
Mon Apr 12 08:41:19 UTC 2021


---
 src/libvlc-module.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 87ecae63174..8050b2eea1e 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -537,6 +537,15 @@ static const char *const screensaver_texts[] = {
     "algorithms should try to compensate (in milliseconds)." )
 
 #define CLOCK_MASTER_TEXT N_("Clock master source")
+#define CLOCK_MASTER_LONGTEXT N_( "Select the clock master source:\n" \
+    "auto: best clock source, input if the access can't be paced " \
+    "(when playing live content), or audio otherwise (most likely).\n" \
+    "input: all tracks are driven by the input clock, via PCR updates " \
+    "from the demuxer. This restore the VLC 3.0 clock behavior where both audio " \
+    "and video tracks can be altered to catch up with the input.\n" \
+    "audio: if an audio track is playing, the audio output will drive the " \
+    "clock (Fallback to Monotonic if there is no audio tracks).\n" \
+    "monotonic: all tracks are driven by the monotonic clock of the system.")
 
 static const char *const ppsz_clock_master_values[] = {
     "auto", "input", "audio", "monotonic",
@@ -1979,7 +1988,7 @@ vlc_module_begin ()
               CLOCK_JITTER_LONGTEXT, true )
         change_safe()
     add_string( "clock-master", "auto",
-                 CLOCK_MASTER_TEXT, NULL, true )
+                 CLOCK_MASTER_TEXT, CLOCK_MASTER_LONGTEXT, true )
         change_string_list( ppsz_clock_master_values, ppsz_clock_master_descriptions )
 
     add_directory("input-record-path", NULL,
-- 
2.30.0



More information about the vlc-devel mailing list