[vlc-commits] http: fix caching value (fixes #16795)

Rémi Denis-Courmont git at videolan.org
Thu Apr 7 21:31:46 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr  7 22:31:24 2016 +0300| [25950a886db097573f377237baa0e41fa574d0be] | committer: Rémi Denis-Courmont

http: fix caching value (fixes #16795)

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

 modules/access/http/access.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/access/http/access.c b/modules/access/http/access.c
index 28d4d09..4e0663c 100644
--- a/modules/access/http/access.c
+++ b/modules/access/http/access.c
@@ -96,8 +96,8 @@ static int FileControl(access_t *access, int query, va_list args)
         }
 
         case ACCESS_GET_PTS_DELAY:
-            *va_arg(args, int64_t *) = var_InheritInteger(access,
-                                                          "network-caching");
+            *va_arg(args, int64_t *) = INT64_C(1000) *
+                var_InheritInteger(access, "network-caching");
             break;
 
         case ACCESS_GET_CONTENT_TYPE:
@@ -144,8 +144,8 @@ static int LiveControl(access_t *access, int query, va_list args)
             break;
 
         case ACCESS_GET_PTS_DELAY:
-            *va_arg(args, int64_t *) = var_InheritInteger(access,
-                                                          "network-caching");
+            *va_arg(args, int64_t *) = INT64_C(1000) *
+                var_InheritInteger(access, "network-caching");
             break;
 
         case ACCESS_GET_CONTENT_TYPE:



More information about the vlc-commits mailing list