[vlc-commits] livehttp: remove multiplication by 1

Tristan Matthews git at videolan.org
Sun Jun 29 23:35:51 CEST 2014


vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Fri Jun 27 16:48:21 2014 -0400| [8f311799715c843c420cfa4e0cee87310a20ef27] | committer: Tristan Matthews

livehttp: remove multiplication by 1

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

 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 ) )



More information about the vlc-commits mailing list