]> git.sesse.net Git - vlc/blobdiff - src/libvlc-module.c
Added timeshift options (input-timeshift-granularity/input-timeshift-path).
[vlc] / src / libvlc-module.c
index 7c52604763ac51c51c26090760fc59fbad7f957b..ccc932aa32a792f424017a30a0c31de0541e917f 100644 (file)
@@ -704,6 +704,15 @@ static const char *const ppsz_clock_descriptions[] =
     "When possible, the input stream will be recorded instead of using" \
     "the stream output module" )
 
+#define INPUT_TIMESHIFT_PATH_TEXT N_("Timeshift directory")
+#define INPUT_TIMESHIFT_PATH_LONGTEXT N_( \
+    "Directory used to store the timeshift temporary files." )
+
+#define INPUT_TIMESHIFT_GRANULARITY_TEXT N_("Timeshift granularity")
+#define INPUT_TIMESHIFT_GRANULARITY_LONGTEXT N_( \
+    "This is the maximum size in bytes of the temporary files " \
+    "that will be used to store the timeshifted streams." )
+
 // DEPRECATED
 #define SUB_CAT_LONGTEXT N_( \
     "These options allow you to modify the behavior of the subpictures " \
@@ -1766,6 +1775,11 @@ vlc_module_begin ()
     add_bool( "input-record-native", true, NULL, INPUT_RECORD_NATIVE_TEXT,
               INPUT_RECORD_NATIVE_LONGTEXT, true );
 
+    add_string( "input-timeshift-path", NULL, NULL, INPUT_TIMESHIFT_PATH_TEXT,
+                INPUT_TIMESHIFT_PATH_LONGTEXT, true );
+    add_integer( "input-timeshift-granularity", -1, NULL, INPUT_TIMESHIFT_GRANULARITY_TEXT,
+                 INPUT_TIMESHIFT_GRANULARITY_LONGTEXT, true );
+
 /* Decoder options */
     add_category_hint( N_("Decoders"), CODEC_CAT_LONGTEXT , true )
     add_string( "codec", NULL, NULL, CODEC_TEXT,