[vlc-devel] commit: mmap: allow tweaking the PTS delay ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Sep 16 17:53:01 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Sep 16 18:52:31 2008 +0300| [a3e26196178b07bba4759a62d94d2b271c114ec7] | committer: Rémi Denis-Courmont 

mmap: allow tweaking the PTS delay

(The PTS delay thing should be dynamically automatically computed -
 for every access - however, IMHO)

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

 modules/access/mmap.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/access/mmap.c b/modules/access/mmap.c
index 0d04503..220d5e7 100644
--- a/modules/access/mmap.c
+++ b/modules/access/mmap.c
@@ -281,8 +281,11 @@ static int Control (access_t *p_access, int query, va_list args)
             return VLC_SUCCESS;
 
         case ACCESS_GET_PTS_DELAY:
-            *((int64_t *)va_arg (args, int64_t *)) = DEFAULT_PTS_DELAY;
+        {
+            int delay_ms = var_CreateGetInteger (p_access, "file-caching");
+            *((int64_t *)va_arg (args, int64_t *)) = delay_ms * INT64_C (1000);
             return VLC_SUCCESS;
+        }
 
         case ACCESS_GET_TITLE_INFO:
         case ACCESS_GET_META:




More information about the vlc-devel mailing list