livehttp: remove multiplication by 1
authorTristan Matthews <le.businessman@gmail.com>
Fri, 27 Jun 2014 20:48:21 +0000 (16:48 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Sun, 29 Jun 2014 21:35:15 +0000 (17:35 -0400)
modules/access_output/livehttp.c

index acf0991..faf8f49 100644 (file)
@@ -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 ) )