[vlc-commits] nfs: transform the "network-caching" to ticks for the PTS delay

Steve Lhomme git at videolan.org
Fri Jul 6 10:48:28 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jul  6 09:55:35 2018 +0200| [f80b98dd18b9d4c692efddb5ee7f200af99184d4] | committer: Steve Lhomme

nfs: transform the "network-caching" to ticks for the PTS delay

That's what all other modules do, it was likely missing the * 1000.

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

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

diff --git a/modules/access/nfs.c b/modules/access/nfs.c
index 574d10dd4f..d94dd6fc7f 100644
--- a/modules/access/nfs.c
+++ b/modules/access/nfs.c
@@ -293,8 +293,8 @@ FileControl(stream_t *p_access, int i_query, va_list args)
         }
 
         case STREAM_GET_PTS_DELAY:
-            *va_arg(args, int64_t *) = var_InheritInteger(p_access,
-                                                          "network-caching");
+            *va_arg(args, int64_t *) = VLC_TICK_FROM_MS(
+                    var_InheritInteger(p_access, "network-caching") );
             break;
 
         case STREAM_SET_PAUSE_STATE:



More information about the vlc-commits mailing list