[vlc-devel] commit: rtp sout: add missing caching option (Pierre Ynard )
git version control
git at videolan.org
Fri Dec 11 18:47:33 CET 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Dec 11 18:44:35 2009 +0100| [b6cec887003fcbf14afaa888f1de893620a728d1] | committer: Pierre Ynard
rtp sout: add missing caching option
It was already used in the code...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6cec887003fcbf14afaa888f1de893620a728d1
---
modules/stream_out/rtp.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index c720aa5..ff6388f 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -129,6 +129,11 @@
"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
};
More information about the vlc-devel
mailing list