]> git.sesse.net Git - vlc/commitdiff
livehttp: don't allow longer than targetduration segments
authorIlkka Ollakka <ileoo@videolan.org>
Mon, 25 Feb 2013 14:22:05 +0000 (16:22 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 28 Feb 2013 11:02:25 +0000 (13:02 +0200)
modules/access_output/livehttp.c

index 9d002039c2f43da5296c8c8c65681ffdd16803d6..00645cbf0d46eec352407bdf905ab4b45238d25c 100644 (file)
@@ -163,8 +163,8 @@ static int Open( vlc_object_t *p_this )
         return VLC_ENOMEM;
 
     p_sys->i_seglen = var_GetInteger( p_access, SOUT_CFG_PREFIX "seglen" );
-    /* Try to get within +-10% of asked segment length, so limit is +10% of segment length*/
-    p_sys->i_seglenm = CLOCK_FREQ * p_sys->i_seglen * 1.10;
+    /* Try to get within asked segment length */
+    p_sys->i_seglenm = CLOCK_FREQ * p_sys->i_seglen;
     p_sys->block_buffer = NULL;
 
     p_sys->i_numsegs = var_GetInteger( p_access, SOUT_CFG_PREFIX "numsegs" );