- "Allows you to modify the default caching value for udp streams. This " \
- "value should be set in millisecond units." )
-
-vlc_module_begin();
- set_description( _("UDP stream ouput") );
- add_integer( "udp-sout-caching", DEFAULT_PTS_DELAY / 1000, NULL,
- CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE );
- set_capability( "sout access", 100 );
- add_shortcut( "udp" );
- add_shortcut( "rtp" ); // Will work only with ts muxer
- set_callbacks( Open, Close );
-vlc_module_end();
-
-typedef struct sout_access_thread_t
-{
- VLC_COMMON_MEMBERS
+ "Default caching value for outbound UDP streams. This " \
+ "value should be set in milliseconds." )
+
+#define GROUP_TEXT N_("Group packets")
+#define GROUP_LONGTEXT N_("Packets can be sent one by one at the right time " \
+ "or by groups. You can choose the number " \
+ "of packets that will be sent at a time. It " \
+ "helps reducing the scheduling load on " \
+ "heavily-loaded systems." )
+
+vlc_module_begin ()
+ set_description( N_("UDP stream output") )
+ set_shortname( "UDP" )
+ set_category( CAT_SOUT )
+ set_subcategory( SUBCAT_SOUT_ACO )
+ add_integer( SOUT_CFG_PREFIX "caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
+ add_integer( SOUT_CFG_PREFIX "group", 1, NULL, GROUP_TEXT, GROUP_LONGTEXT,
+ true )
+ add_obsolete_integer( SOUT_CFG_PREFIX "late" )
+ add_obsolete_bool( SOUT_CFG_PREFIX "raw" )
+
+ set_capability( "sout access", 0 )
+ add_shortcut( "udp" )
+ set_callbacks( Open, Close )
+vlc_module_end ()