[vlc-commits] podcast: transform seconds in vlc_tick_t with vlc_tick_from_sec()

Steve Lhomme git at videolan.org
Thu Sep 20 17:14:14 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 20 16:55:50 2018 +0200| [d6038c355a5d49373b4207838005c0f2e6741603] | 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=d6038c355a5d49373b4207838005c0f2e6741603
---

 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