[vlc-commits] libvlc-module: the network-caching is in milliseconds not vlc_tick_t

Steve Lhomme git at videolan.org
Fri Jul 6 09:45:27 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul  6 09:45:18 2018 +0200| [9270020e0b53e4b5d8fb5d5e95de302ffac6140e] | committer: Steve Lhomme

libvlc-module: the network-caching is in milliseconds not vlc_tick_t

Fixes c3ffa1ff1db72596a54a3ba0d6714e5c6a4e2450

It's effectively 1s in milliseconds, CLOCK_FREQ must not be involved

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

 src/libvlc-module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvlc-module.c b/src/libvlc-module.c
index 0ce952a494..82862ab474 100644
--- a/src/libvlc-module.c
+++ b/src/libvlc-module.c
@@ -1891,7 +1891,7 @@ vlc_module_begin ()
     add_obsolete_integer( "dvdnav-caching" ) /* 2.0.0 */
     add_obsolete_integer( "dvdread-caching" ) /* 2.0.0 */
     add_obsolete_integer( "vcd-caching" ) /* 2.0.0 */
-    add_integer( "network-caching", MS_FROM_VLC_TICK(1),
+    add_integer( "network-caching", 1000,
                  NETWORK_CACHING_TEXT, NETWORK_CACHING_LONGTEXT, true )
         change_integer_range( 0, 60000 )
         change_safe()



More information about the vlc-commits mailing list