Commit 82c1c6ab authored by Ilkka Ollakka's avatar Ilkka Ollakka Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 58dfd2dc56fbc91398076728d6bea3c311b1ba4b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3ef0d251
...@@ -160,7 +160,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -160,7 +160,8 @@ static int Open( vlc_object_t *p_this )
return VLC_ENOMEM; return VLC_ENOMEM;
p_sys->i_seglen = var_GetInteger( p_access, SOUT_CFG_PREFIX "seglen" ); 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->i_numsegs = var_GetInteger( p_access, SOUT_CFG_PREFIX "numsegs" );
p_sys->b_splitanywhere = var_GetBool( p_access, SOUT_CFG_PREFIX "splitanywhere" ); 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