Commit 8f311799 authored by Tristan Matthews's avatar Tristan Matthews

livehttp: remove multiplication by 1

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