]> git.sesse.net Git - vlc/commitdiff
Add option descriptions
authorClément Stenac <zorglub@videolan.org>
Sun, 25 Apr 2004 08:45:28 +0000 (08:45 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 25 Apr 2004 08:45:28 +0000 (08:45 +0000)
modules/access_output/file.c
modules/access_output/http.c
modules/access_output/udp.c

index 2535bde8f046ccdfbc1b16b14db4d7db108cb3dc..fc0e83d3a8ac98e95276beee3c05ae31c796521b 100644 (file)
@@ -59,13 +59,17 @@ static int  Open ( vlc_object_t * );
 static void Close( vlc_object_t * );
 
 #define SOUT_CFG_PREFIX "sout-file-"
+#define APPEND_TEXT N_("Append to file")
+#define APPEND_LONGTEXT N_( "Append to file if it exists instead " \
+                            "of replacing it.")
 
 vlc_module_begin();
     set_description( _("File stream ouput") );
     set_capability( "sout access", 50 );
     add_shortcut( "file" );
     add_shortcut( "stream" );
-    add_bool( SOUT_CFG_PREFIX "append", 0, NULL, "append", "", VLC_TRUE );
+    add_bool( SOUT_CFG_PREFIX "append", 0, NULL, APPEND_TEXT,APPEND_LONGTEXT,
+              VLC_TRUE );
     set_callbacks( Open, Close );
 vlc_module_end();
 
index 10ed97248cd172a287b99cb593549acf2c6ad8d4..2a5ff457a53772b64e574f134e790ec12b9a942c 100644 (file)
@@ -43,6 +43,14 @@ static void Close( vlc_object_t * );
 
 #define SOUT_CFG_PREFIX "sout-http-"
 
+#define USER_TEXT N_("Username")
+#define USER_LONGTEXT N_("Allows you to give a user name that will be " \
+                         "requested to access the stream." )
+#define PASS_TEXT N_("Password")
+#define PASS_LONGTEXT N_("Allows you to give a password that will be " \
+                         "requested to access the stream." )
+
+
 vlc_module_begin();
     set_description( _("HTTP stream ouput") );
     set_capability( "sout access", 0 );
index 710d4d5dc6f3911a51acb043e7d13909fd1c7113..7bd52b77d5d8acf4ca4a5ae22cc5995ce73f2f64 100644 (file)
@@ -65,13 +65,35 @@ static void Close( vlc_object_t * );
     "Allows you to modify the default caching value for udp streams. This " \
     "value should be set in millisecond units." )
 
+#define TTL_TEXT N_("Time To Live")
+#define TTL_LONGTEXT N_("Allows you to define the time to live of the " \
+                        "outgoing stream.")
+
+#define GROUP_TEXT N_("Group packets")
+#define GROUP_LONGTEXT N_("Packets can be sent one by one at the right time " \
+                          "or by groups. This allows you to give the number " \
+                          "of packets that will be sent at a time." )
+#define LATE_TEXT N_("Late delay (ms)" )
+#define LATE_LONGTEXT N_("Late packets are dropped. This allows you to give " \
+                       "the time (in milliseconds) a packet is allowed to be" \
+                       " late.")
+#define RAW_TEXT N_("Raw write")
+#define RAW_LONGTEXT N_("If you enable this option, packets will be sent " \
+                       "directly, without trying to fill the MTU (ie, " \
+                       "without trying to make the biggest possible packets " \
+                       "in order to improve streaming)." )
+
 vlc_module_begin();
     set_description( _("UDP stream ouput") );
     add_integer( SOUT_CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
-    add_integer( SOUT_CFG_PREFIX "ttl", 0, NULL, "ttl", "", VLC_TRUE );
-    add_integer( SOUT_CFG_PREFIX "group", 1, NULL, "group", "", VLC_TRUE );
-    add_integer( SOUT_CFG_PREFIX "late", 0, NULL, "late (ms)", "", VLC_TRUE );
-    add_bool( SOUT_CFG_PREFIX "raw",  0, NULL, "raw", "", VLC_TRUE );
+    add_integer( SOUT_CFG_PREFIX "ttl", 0, NULL,TTL_TEXT, TTL_LONGTEXT,
+                                 VLC_TRUE );
+    add_integer( SOUT_CFG_PREFIX "group", 1, NULL, GROUP_TEXT, GROUP_LONGTEXT,
+                                 VLC_TRUE );
+    add_integer( SOUT_CFG_PREFIX "late", 0, NULL, LATE_TEXT, LATE_LONGTEXT,
+                                 VLC_TRUE );
+    add_bool( SOUT_CFG_PREFIX "raw",  0, NULL, RAW_TEXT, RAW_LONGTEXT,
+                                 VLC_TRUE );
 
     set_capability( "sout access", 100 );
     add_shortcut( "udp" );