[vlc-devel] commit: RTP sout: --sout-rtp-sap, works like --sout-standard-sap ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 3 22:24:01 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sat May 3 23:25:12 2008 +0300| [fd658c7d4975acf5bcb41dc5f0ef5a14b1adcb5d]
RTP sout: --sout-rtp-sap, works like --sout-standard-sap
In addition to #rtp{sdp=sap}, we can now use #rtp{sap}
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd658c7d4975acf5bcb41dc5f0ef5a14b1adcb5d
---
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 41a163b..91b29a1 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -73,6 +73,8 @@
"session will be made available. You must use an url: http://location to " \
"access the SDP via HTTP, rtsp://location for RTSP access, and sap:// " \
"for the SDP to be announced via SAP." )
+#define SAP_TEXT N_("SAP announcing")
+#define SAP_LONGTEXT N_("Announce this session with SAP.")
#define MUX_TEXT N_("Muxer")
#define MUX_LONGTEXT N_( \
"This allows you to specify the muxer used for the streaming output. " \
@@ -158,6 +160,8 @@ vlc_module_begin();
SDP_LONGTEXT, true );
add_string( SOUT_CFG_PREFIX "mux", "", NULL, MUX_TEXT,
MUX_LONGTEXT, true );
+ add_bool( SOUT_CFG_PREFIX "sap", false, NULL, SAP_TEXT, SAP_LONGTEXT,
+ true );
add_string( SOUT_CFG_PREFIX "name", "", NULL, NAME_TEXT,
NAME_LONGTEXT, true );
@@ -196,7 +200,7 @@ vlc_module_end();
*****************************************************************************/
static const char *ppsz_sout_options[] = {
"dst", "name", "port", "port-audio", "port-video", "*sdp", "ttl", "mux",
- "description", "url", "email", "phone",
+ "sap", "description", "url", "email", "phone",
"proto", "rtcp-mux",
"mp4a-latm", NULL
};
@@ -496,6 +500,9 @@ static int Open( vlc_object_t *p_this )
p_stream->pf_send = Send;
}
+ if( var_GetBool( p_stream, SOUT_CFG_PREFIX"sap" ) )
+ SDPHandleUrl( p_stream, "sap" );
+
psz = var_GetNonEmptyString( p_stream, SOUT_CFG_PREFIX "sdp" );
if( psz != NULL )
{
More information about the vlc-devel
mailing list