]> git.sesse.net Git - vlc/commitdiff
rtp sout: add missing caching option
authorPierre Ynard <linkfanel@yahoo.fr>
Fri, 11 Dec 2009 17:44:35 +0000 (18:44 +0100)
committerPierre Ynard <linkfanel@yahoo.fr>
Fri, 11 Dec 2009 17:44:35 +0000 (18:44 +0100)
It was already used in the code...

modules/stream_out/rtp.c

index c720aa5b6787245f960f5a31c562d146713bf997..ff6388f66139b032ed479ecd07a01d3c7f23d971 100644 (file)
     "This sends and receives RTCP packet multiplexed over the same port " \
     "as RTP packets." )
 
+#define CACHING_TEXT N_("Caching value (ms)")
+#define CACHING_LONGTEXT N_( \
+    "Default caching value for outbound RTP streams. This " \
+    "value should be set in milliseconds." )
+
 #define PROTO_TEXT N_("Transport protocol")
 #define PROTO_LONGTEXT N_( \
     "This selects which transport protocol to use for RTP." )
@@ -202,6 +207,8 @@ vlc_module_begin ()
                  TTL_LONGTEXT, true )
     add_bool( SOUT_CFG_PREFIX "rtcp-mux", false, NULL,
               RTCP_MUX_TEXT, RTCP_MUX_LONGTEXT, false )
+    add_integer( SOUT_CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000, NULL,
+                 CACHING_TEXT, CACHING_LONGTEXT, true )
 
 #ifdef HAVE_SRTP
     add_string( SOUT_CFG_PREFIX "key", "", NULL,
@@ -222,7 +229,7 @@ vlc_module_end ()
 static const char *const ppsz_sout_options[] = {
     "dst", "name", "port", "port-audio", "port-video", "*sdp", "ttl", "mux",
     "sap", "description", "url", "email", "phone",
-    "proto", "rtcp-mux", "key", "salt",
+    "proto", "rtcp-mux", "caching", "key", "salt",
     "mp4a-latm", NULL
 };