Commit a3e26196 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mmap: allow tweaking the PTS delay

(The PTS delay thing should be dynamically automatically computed -
 for every access - however, IMHO)
parent 270d4c8d
......@@ -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:
......
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