Commit 03acfc92 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by 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 a3e26196)
parent f3515ac6
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment