[vlc-commits] livehttp: don't allow longer than targetduration segments

Ilkka Ollakka git at videolan.org
Thu Feb 28 12:31:49 CET 2013


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon Feb 25 16:22:05 2013 +0200| [8cf9d32f0ca6cc62b16df31f2c04ad02aad079ed] | committer: Ilkka Ollakka

livehttp: don't allow longer than targetduration segments

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8cf9d32f0ca6cc62b16df31f2c04ad02aad079ed
---

 modules/access_output/livehttp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access_output/livehttp.c b/modules/access_output/livehttp.c
index 9d00203..00645cb 100644
--- a/modules/access_output/livehttp.c
+++ b/modules/access_output/livehttp.c
@@ -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" );



More information about the vlc-commits mailing list