Commit 58dfd2dc authored by Ilkka Ollakka's avatar Ilkka Ollakka

livehttp: allow segments to be 10% shorten than asked, seems to be usual limit of allowed variance

parent 219549e6
......@@ -160,7 +160,8 @@ static int Open( vlc_object_t *p_this )
return VLC_ENOMEM;
p_sys->i_seglen = var_GetInteger( p_access, SOUT_CFG_PREFIX "seglen" );
p_sys->i_seglenm = CLOCK_FREQ * p_sys->i_seglen;
/* Try to get within +-10% of asked segment length, so lower limit is 90% of segment length*/
p_sys->i_seglenm = CLOCK_FREQ * p_sys->i_seglen * 0.9;
p_sys->i_numsegs = var_GetInteger( p_access, SOUT_CFG_PREFIX "numsegs" );
p_sys->b_splitanywhere = var_GetBool( p_access, SOUT_CFG_PREFIX "splitanywhere" );
......
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