[vlc-commits] Constrain caching to a positive value no longer than one minute

Rémi Denis-Courmont git at videolan.org
Tue Aug 30 20:33:40 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 30 17:45:19 2011 +0300| [d71dcc99d42a5681ef760aa3ee4dc3ccb02046a0] | committer: Rémi Denis-Courmont

Constrain caching to a positive value no longer than one minute

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

 src/libvlc-module.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index dfae78a..d324471 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1913,15 +1913,19 @@ vlc_module_begin ()
 
     add_integer( "file-caching", DEFAULT_PTS_DELAY / 1000,
                  CACHING_TEXT, CACHING_LONGTEXT, true )
+        change_integer_range( 0, 60000 )
         change_safe()
-    add_integer( "capture-caching", DEFAULT_PTS_DELAY / 1000,
+    add_integer( "live-caching", DEFAULT_PTS_DELAY / 1000,
                  CAPTURE_CACHING_TEXT, CAPTURE_CACHING_LONGTEXT, true )
+        change_integer_range( 0, 60000 )
         change_safe()
     add_integer( "disc-caching", DEFAULT_PTS_DELAY / 1000,
                  DISC_CACHING_TEXT, DISC_CACHING_LONGTEXT, true )
+        change_integer_range( 0, 60000 )
         change_safe()
     add_integer( "network-caching", CLOCK_FREQ / 1000,
                  NETWORK_CACHING_TEXT, NETWORK_CACHING_LONGTEXT, true )
+        change_integer_range( 0, 60000 )
         change_safe()
 
     add_integer( "cr-average", 40, CR_AVERAGE_TEXT,



More information about the vlc-commits mailing list