[vlc-commits] demux:asf: use SEC_FROM_VLC_TICK() to log seconds

Steve Lhomme git at videolan.org
Fri Jul 6 09:20:13 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun  7 11:38:34 2018 +0200| [44bef93f9eeae4c352b659e1a48ffd6d63bea51c] | committer: Steve Lhomme

demux:asf: use SEC_FROM_VLC_TICK() to log seconds

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

 modules/demux/asf/asf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 280c3cbd54..2e7e9f2e07 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -356,7 +356,7 @@ static int SeekIndex( demux_t *p_demux, vlc_tick_t i_date, float f_pos )
     asf_object_index_t *p_index;
 
     msg_Dbg( p_demux, "seek with index: %i seconds, position %f",
-             i_date >= 0 ? (int)(i_date/CLOCK_FREQ) : -1, f_pos );
+             i_date >= 0 ? SEC_FROM_VLC_TICK(i_date) : -1, f_pos );
 
     if( i_date < 0 )
         i_date = p_sys->i_length * f_pos;



More information about the vlc-commits mailing list