[vlc-devel] [PATCH] livehttp: remove multiplication by 1

Tristan Matthews le.businessman at gmail.com
Fri Jun 27 22:48:21 CEST 2014


---
 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 acf0991..faf8f49 100644
--- a/modules/access_output/livehttp.c
+++ b/modules/access_output/livehttp.c
@@ -761,8 +761,8 @@ static void Close( vlc_object_t * p_this )
 
         /* Since we are flushing, check the segment change by hand and don't wait
          * possible keyframe*/
-        if( ((float)(output_block->i_length * CLOCK_FREQ / INT64_C(1000000) ) +
-            (float)(output_block->i_dts - p_sys->i_opendts)) >= p_sys->i_seglenm )
+        if( ((float) output_block->i_length +
+             (float) (output_block->i_dts - p_sys->i_opendts)) >= p_sys->i_seglenm )
         {
             closeCurrentSegment( p_access, p_sys, false );
             if( unlikely(openNextFile( p_access, p_sys ) < 0 ) )
-- 
1.9.3




More information about the vlc-devel mailing list