vlc | branch: master | Rémi Denis-Courmont <[email protected]> | 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:

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to