[vlc-commits] xspf: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

Steve Lhomme git at videolan.org
Thu Jul 5 16:57:23 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 12 12:05:49 2018 +0200| [f8745254388c30be9db3adfd889d1441096cbad1] | committer: Steve Lhomme

xspf: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()

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

 modules/misc/playlist/xspf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c
index d115e4ce66..6476f08e2a 100644
--- a/modules/misc/playlist/xspf.c
+++ b/modules/misc/playlist/xspf.c
@@ -142,7 +142,7 @@ xspfexportitem_end:
     i_duration = input_item_GetDuration( p_item->p_input );
     if( i_duration > 0 )
         fprintf( p_file, "\t\t\t<duration>%"PRIu64"</duration>\n",
-                 i_duration / 1000 );
+                 MS_FROM_VLC_TICK(i_duration) );
 
     /* export the intenal id and the input's options (bookmarks, ...)
      * in <extension> */



More information about the vlc-commits mailing list