Commit 53a3b859 authored by Laurent Aimar's avatar Laurent Aimar

Add most of *-caching options as safe

Patch by Anthony Loiseau (thannoy _AT_ actech-innovation _DOT_ com)
parent 5226ae13
...@@ -198,6 +198,7 @@ vlc_module_begin () ...@@ -198,6 +198,7 @@ vlc_module_begin ()
add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true ) CACHING_LONGTEXT, true )
change_safe()
add_integer( "dvb-frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT, add_integer( "dvb-frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT,
false ) false )
# if defined(WIN32) || defined(WINCE) # if defined(WIN32) || defined(WINCE)
......
...@@ -74,6 +74,7 @@ vlc_module_begin () ...@@ -74,6 +74,7 @@ vlc_module_begin ()
add_usage_hint( N_("[cdda:][device][@[track]]") ) add_usage_hint( N_("[cdda:][device][@[track]]") )
add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true ) CACHING_LONGTEXT, true )
change_safe()
add_integer( "cdda-track", 0 , NULL, NULL, NULL, true ) add_integer( "cdda-track", 0 , NULL, NULL, NULL, true )
change_internal () change_internal ()
......
...@@ -79,6 +79,7 @@ vlc_module_begin () ...@@ -79,6 +79,7 @@ vlc_module_begin ()
set_category( CAT_INPUT ) set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS ) set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "dv-caching", 60000 / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true ) add_integer( "dv-caching", 60000 / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
set_capability( "access", 0 ) set_capability( "access", 0 )
add_shortcut( "dv" ) add_shortcut( "dv" )
add_shortcut( "dv1394" ) add_shortcut( "dv1394" )
......
...@@ -198,6 +198,7 @@ vlc_module_begin () ...@@ -198,6 +198,7 @@ vlc_module_begin ()
add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true ) CACHING_LONGTEXT, true )
change_safe()
add_integer( "dvb-adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT, add_integer( "dvb-adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT,
false ) false )
add_integer( "dvb-device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT, add_integer( "dvb-device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
......
...@@ -85,6 +85,7 @@ vlc_module_begin () ...@@ -85,6 +85,7 @@ vlc_module_begin ()
set_category( CAT_INPUT ) set_category( CAT_INPUT )
set_subcategory( SUBCAT_INPUT_ACCESS ) set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true ) add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_obsolete_string( "file-cat" ) add_obsolete_string( "file-cat" )
set_capability( "access", 50 ) set_capability( "access", 50 )
add_shortcut( "file" ) add_shortcut( "file" )
......
...@@ -76,6 +76,7 @@ vlc_module_begin () ...@@ -76,6 +76,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_ACCESS ) set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL, add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true ) CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT, add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT,
false ) false )
add_string( "ftp-pwd", "anonymous@example.com", NULL, PASS_TEXT, add_string( "ftp-pwd", "anonymous@example.com", NULL, PASS_TEXT,
......
...@@ -108,6 +108,7 @@ vlc_module_begin () ...@@ -108,6 +108,7 @@ vlc_module_begin ()
PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT, false ) PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT, false )
add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true ) CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, AGENT_TEXT, add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, AGENT_TEXT,
AGENT_LONGTEXT, true ) AGENT_LONGTEXT, true )
add_bool( "http-reconnect", 0, NULL, RECONNECT_TEXT, add_bool( "http-reconnect", 0, NULL, RECONNECT_TEXT,
......
...@@ -91,6 +91,7 @@ vlc_module_begin () ...@@ -91,6 +91,7 @@ vlc_module_begin ()
add_integer ("rtp-caching", 1000, NULL, RTP_CACHING_TEXT, add_integer ("rtp-caching", 1000, NULL, RTP_CACHING_TEXT,
RTP_CACHING_LONGTEXT, true) RTP_CACHING_LONGTEXT, true)
change_integer_range (0, 65535) change_integer_range (0, 65535)
change_safe()
add_integer ("rtcp-port", 0, NULL, RTCP_PORT_TEXT, add_integer ("rtcp-port", 0, NULL, RTCP_PORT_TEXT,
RTCP_PORT_LONGTEXT, false) RTCP_PORT_LONGTEXT, false)
change_integer_range (0, 65535) change_integer_range (0, 65535)
......
...@@ -55,6 +55,7 @@ vlc_module_begin () ...@@ -55,6 +55,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_ACCESS ) set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "realrtsp-caching", 3000, NULL, add_integer( "realrtsp-caching", 3000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true ) CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
set_capability( "access", 10 ) set_capability( "access", 10 )
set_callbacks( Open, Close ) set_callbacks( Open, Close )
add_shortcut( "realrtsp" ) add_shortcut( "realrtsp" )
......
...@@ -83,6 +83,7 @@ vlc_module_begin () ...@@ -83,6 +83,7 @@ vlc_module_begin ()
set_subcategory( SUBCAT_INPUT_ACCESS ) set_subcategory( SUBCAT_INPUT_ACCESS )
add_integer( "smb-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL, add_integer( "smb-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true ) CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_string( "smb-user", NULL, NULL, USER_TEXT, USER_LONGTEXT, add_string( "smb-user", NULL, NULL, USER_TEXT, USER_LONGTEXT,
false ) false )
add_string( "smb-pwd", NULL, NULL, PASS_TEXT, add_string( "smb-pwd", NULL, NULL, PASS_TEXT,
......
...@@ -54,6 +54,7 @@ vlc_module_begin () ...@@ -54,6 +54,7 @@ vlc_module_begin ()
add_integer( "tcp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, add_integer( "tcp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true ) CACHING_LONGTEXT, true )
change_safe()
set_capability( "access", 0 ) set_capability( "access", 0 )
add_shortcut( "tcp" ) add_shortcut( "tcp" )
......
...@@ -62,6 +62,7 @@ vlc_module_begin () ...@@ -62,6 +62,7 @@ vlc_module_begin ()
add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
CACHING_LONGTEXT, true ) CACHING_LONGTEXT, true )
change_safe()
add_obsolete_integer( "rtp-late" ) add_obsolete_integer( "rtp-late" )
add_obsolete_bool( "udp-auto-mtu" ) add_obsolete_bool( "udp-auto-mtu" )
......
...@@ -125,6 +125,7 @@ vlc_module_begin () ...@@ -125,6 +125,7 @@ vlc_module_begin ()
true ) true )
add_integer("rtsp-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL, add_integer("rtsp-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
CACHING_TEXT, CACHING_LONGTEXT, true ) CACHING_TEXT, CACHING_LONGTEXT, true )
change_safe()
add_bool( "rtsp-kasenna", false, NULL, KASENNA_TEXT, add_bool( "rtsp-kasenna", false, NULL, KASENNA_TEXT,
KASENNA_LONGTEXT, true ) KASENNA_LONGTEXT, true )
add_string( "rtsp-user", NULL, NULL, USER_TEXT, add_string( "rtsp-user", NULL, NULL, USER_TEXT,
......
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