[vlc-commits] podcast: transform seconds in vlc_tick_t with vlc_tick_from_sec()
    Steve Lhomme 
    git at videolan.org
       
    Thu Sep 20 17:02:11 CEST 2018
    
    
  
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 16:55:50 2018 +0200| [98905d87123db3c43c61a47efcf7243b05ca55c3] | committer: Steve Lhomme
podcast: transform seconds in vlc_tick_t with vlc_tick_from_sec()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98905d87123db3c43c61a47efcf7243b05ca55c3
---
 modules/demux/playlist/podcast.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/playlist/podcast.c b/modules/demux/playlist/podcast.c
index c8afe44bf6..746ef524d1 100644
--- a/modules/demux/playlist/podcast.c
+++ b/modules/demux/playlist/podcast.c
@@ -381,9 +381,9 @@ static vlc_tick_t strTimeToMTime( const char *psz )
     switch( sscanf( psz, "%u:%u:%u", &h, &m, &s ) )
     {
     case 3:
-        return (vlc_tick_t)( ( h*60 + m )*60 + s ) * CLOCK_FREQ;
+        return vlc_tick_from_sec( ( h*60 + m )*60 + s );
     case 2:
-        return (vlc_tick_t)( h*60 + m ) * CLOCK_FREQ;
+        return vlc_tick_from_sec( h*60 + m );
     default:
         return INPUT_DURATION_UNSET;
     }
    
    
More information about the vlc-commits
mailing list