Commit 036d7985 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

RTP: add an option to control the category

Reported-by: default avatarVincent Vinel <v.vinel@gmail.com>
(cherry picked from commit 11f1a3ea832ab8c69013de2f0631afda3a5c53ff)
parent dab282c1
...@@ -93,6 +93,10 @@ ...@@ -93,6 +93,10 @@
#define NAME_LONGTEXT N_( \ #define NAME_LONGTEXT N_( \
"This is the name of the session that will be announced in the SDP " \ "This is the name of the session that will be announced in the SDP " \
"(Session Descriptor)." ) "(Session Descriptor)." )
#define CAT_TEXT N_("Session category")
#define CAT_LONGTEXT N_( \
"This allows you to specify a category for the session, " \
"that will be announced if you choose to use SAP." )
#define DESC_TEXT N_("Session description") #define DESC_TEXT N_("Session description")
#define DESC_LONGTEXT N_( \ #define DESC_LONGTEXT N_( \
"This allows you to give a short description with details about the stream, " \ "This allows you to give a short description with details about the stream, " \
...@@ -202,6 +206,7 @@ vlc_module_begin () ...@@ -202,6 +206,7 @@ vlc_module_begin ()
add_string( SOUT_CFG_PREFIX "name", "", NAME_TEXT, add_string( SOUT_CFG_PREFIX "name", "", NAME_TEXT,
NAME_LONGTEXT, true ) NAME_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "cat", "", CAT_TEXT, CAT_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "description", "", DESC_TEXT, add_string( SOUT_CFG_PREFIX "description", "", DESC_TEXT,
DESC_LONGTEXT, true ) DESC_LONGTEXT, true )
add_string( SOUT_CFG_PREFIX "url", "", URL_TEXT, add_string( SOUT_CFG_PREFIX "url", "", URL_TEXT,
...@@ -261,8 +266,8 @@ vlc_module_end () ...@@ -261,8 +266,8 @@ vlc_module_end ()
* Exported prototypes * Exported prototypes
*****************************************************************************/ *****************************************************************************/
static const char *const ppsz_sout_options[] = { static const char *const ppsz_sout_options[] = {
"dst", "name", "port", "port-audio", "port-video", "*sdp", "ttl", "mux", "dst", "name", "cat", "port", "port-audio", "port-video", "*sdp", "ttl",
"sap", "description", "url", "email", "phone", "mux", "sap", "description", "url", "email", "phone",
"proto", "rtcp-mux", "caching", "proto", "rtcp-mux", "caching",
#ifdef HAVE_SRTP #ifdef HAVE_SRTP
"key", "salt", "key", "salt",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment