[vlc-devel] commit: mmap: allow tweaking the PTS delay ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Sep 20 00:50:26 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Sep 16 18:52:31 2008 +0300| [03acfc92614e696611f6442aa45032c959867dab] | committer: Jean-Baptiste Kempf
mmap: allow tweaking the PTS delay
(The PTS delay thing should be dynamically automatically computed -
for every access - however, IMHO)
(cherry picked from commit a3e26196178b07bba4759a62d94d2b271c114ec7)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03acfc92614e696611f6442aa45032c959867dab
---
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 b175671..e49c041 100644
--- a/modules/access/mmap.c
+++ b/modules/access/mmap.c
@@ -288,8 +288,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