[vlc-devel] commit: Add most of *-caching options as safe (Laurent Aimar )

git version control git at videolan.org
Fri May 1 14:59:54 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May  1 14:57:04 2009 +0200| [53a3b8597e4aa5079c067f3741f06da574912736] | committer: Laurent Aimar 

Add most of *-caching options as safe

Patch by Anthony Loiseau (thannoy _AT_ actech-innovation _DOT_ com)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=53a3b8597e4aa5079c067f3741f06da574912736
---

 modules/access/bda/bda.c     |    1 +
 modules/access/cdda.c        |    1 +
 modules/access/dv.c          |    1 +
 modules/access/dvb/access.c  |    1 +
 modules/access/file.c        |    1 +
 modules/access/ftp.c         |    1 +
 modules/access/http.c        |    1 +
 modules/access/rtp/rtp.c     |    1 +
 modules/access/rtsp/access.c |    1 +
 modules/access/smb.c         |    1 +
 modules/access/tcp.c         |    1 +
 modules/access/udp.c         |    1 +
 modules/demux/live555.cpp    |    1 +
 13 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/modules/access/bda/bda.c b/modules/access/bda/bda.c
index c3c2ebd..04add86 100644
--- a/modules/access/bda/bda.c
+++ b/modules/access/bda/bda.c
@@ -198,6 +198,7 @@ vlc_module_begin ()
 
     add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
                  CACHING_LONGTEXT, true )
+        change_safe()
     add_integer( "dvb-frequency", 0, NULL, FREQ_TEXT, FREQ_LONGTEXT,
                  false )
 #   if defined(WIN32) || defined(WINCE)
diff --git a/modules/access/cdda.c b/modules/access/cdda.c
index 5bddc08..d8d0f2d 100644
--- a/modules/access/cdda.c
+++ b/modules/access/cdda.c
@@ -74,6 +74,7 @@ vlc_module_begin ()
     add_usage_hint( N_("[cdda:][device][@[track]]") )
     add_integer( "cdda-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
                  CACHING_LONGTEXT, true )
+        change_safe()
 
     add_integer( "cdda-track", 0 , NULL, NULL, NULL, true )
         change_internal ()
diff --git a/modules/access/dv.c b/modules/access/dv.c
index e692257..6384403 100644
--- a/modules/access/dv.c
+++ b/modules/access/dv.c
@@ -79,6 +79,7 @@ vlc_module_begin ()
     set_category( CAT_INPUT )
     set_subcategory( SUBCAT_INPUT_ACCESS )
     add_integer( "dv-caching", 60000 / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_safe()
     set_capability( "access", 0 )
     add_shortcut( "dv" )
     add_shortcut( "dv1394" )
diff --git a/modules/access/dvb/access.c b/modules/access/dvb/access.c
index eee84ff..45db9fc 100644
--- a/modules/access/dvb/access.c
+++ b/modules/access/dvb/access.c
@@ -198,6 +198,7 @@ vlc_module_begin ()
 
     add_integer( "dvb-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
                  CACHING_LONGTEXT, true )
+        change_safe()
     add_integer( "dvb-adapter", 0, NULL, ADAPTER_TEXT, ADAPTER_LONGTEXT,
                  false )
     add_integer( "dvb-device", 0, NULL, DEVICE_TEXT, DEVICE_LONGTEXT,
diff --git a/modules/access/file.c b/modules/access/file.c
index 8112c00..0889f1c 100644
--- a/modules/access/file.c
+++ b/modules/access/file.c
@@ -85,6 +85,7 @@ vlc_module_begin ()
     set_category( CAT_INPUT )
     set_subcategory( SUBCAT_INPUT_ACCESS )
     add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_safe()
     add_obsolete_string( "file-cat" )
     set_capability( "access", 50 )
     add_shortcut( "file" )
diff --git a/modules/access/ftp.c b/modules/access/ftp.c
index 54f23b1..c6ac6df 100644
--- a/modules/access/ftp.c
+++ b/modules/access/ftp.c
@@ -76,6 +76,7 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INPUT_ACCESS )
     add_integer( "ftp-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
                  CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_safe()
     add_string( "ftp-user", "anonymous", NULL, USER_TEXT, USER_LONGTEXT,
                 false )
     add_string( "ftp-pwd", "anonymous at example.com", NULL, PASS_TEXT,
diff --git a/modules/access/http.c b/modules/access/http.c
index e10114f..59cdf33 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -108,6 +108,7 @@ vlc_module_begin ()
                   PROXY_PASS_TEXT, PROXY_PASS_LONGTEXT, false )
     add_integer( "http-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
                  CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_safe()
     add_string( "http-user-agent", COPYRIGHT_MESSAGE , NULL, AGENT_TEXT,
                 AGENT_LONGTEXT, true )
     add_bool( "http-reconnect", 0, NULL, RECONNECT_TEXT,
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index 4a5935f..16fa511 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -91,6 +91,7 @@ vlc_module_begin ()
     add_integer ("rtp-caching", 1000, NULL, RTP_CACHING_TEXT,
                  RTP_CACHING_LONGTEXT, true)
         change_integer_range (0, 65535)
+        change_safe()
     add_integer ("rtcp-port", 0, NULL, RTCP_PORT_TEXT,
                  RTCP_PORT_LONGTEXT, false)
         change_integer_range (0, 65535)
diff --git a/modules/access/rtsp/access.c b/modules/access/rtsp/access.c
index d2cc4df..0115d30 100644
--- a/modules/access/rtsp/access.c
+++ b/modules/access/rtsp/access.c
@@ -55,6 +55,7 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INPUT_ACCESS )
     add_integer( "realrtsp-caching", 3000, NULL,
                  CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_safe()
     set_capability( "access", 10 )
     set_callbacks( Open, Close )
     add_shortcut( "realrtsp" )
diff --git a/modules/access/smb.c b/modules/access/smb.c
index 96e400d..3a572e2 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -83,6 +83,7 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INPUT_ACCESS )
     add_integer( "smb-caching", 2 * DEFAULT_PTS_DELAY / 1000, NULL,
                  CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_safe()
     add_string( "smb-user", NULL, NULL, USER_TEXT, USER_LONGTEXT,
                 false )
     add_string( "smb-pwd", NULL, NULL, PASS_TEXT,
diff --git a/modules/access/tcp.c b/modules/access/tcp.c
index 95b049c..6c2d50a 100644
--- a/modules/access/tcp.c
+++ b/modules/access/tcp.c
@@ -54,6 +54,7 @@ vlc_module_begin ()
 
     add_integer( "tcp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
                  CACHING_LONGTEXT, true )
+        change_safe()
 
     set_capability( "access", 0 )
     add_shortcut( "tcp" )
diff --git a/modules/access/udp.c b/modules/access/udp.c
index b658cf5..433ccfb 100644
--- a/modules/access/udp.c
+++ b/modules/access/udp.c
@@ -62,6 +62,7 @@ vlc_module_begin ()
 
     add_integer( "udp-caching", DEFAULT_PTS_DELAY / 1000, NULL, CACHING_TEXT,
                  CACHING_LONGTEXT, true )
+        change_safe()
     add_obsolete_integer( "rtp-late" )
     add_obsolete_bool( "udp-auto-mtu" )
 
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index ec7fdad..f8c9fe5 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -125,6 +125,7 @@ vlc_module_begin ()
                   true )
         add_integer("rtsp-caching", 4 * DEFAULT_PTS_DELAY / 1000, NULL,
                     CACHING_TEXT, CACHING_LONGTEXT, true )
+            change_safe()
         add_bool(   "rtsp-kasenna", false, NULL, KASENNA_TEXT,
                     KASENNA_LONGTEXT, true )
         add_string( "rtsp-user", NULL, NULL, USER_TEXT,




More information about the vlc-devel mailing list