vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jun 12 12:07:11 2018 +0200| [266840ba6124c3a8f1866badd628a12e815abf6e] | committer: Steve Lhomme
audioscrobbler: played_time is not an vlc_tick_t convert to seconds using SEC_FROM_VLC_TICK() > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=266840ba6124c3a8f1866badd628a12e815abf6e --- modules/misc/audioscrobbler.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c index 8ffe075a14..085c73d84f 100644 --- a/modules/misc/audioscrobbler.c +++ b/modules/misc/audioscrobbler.c @@ -225,9 +225,8 @@ static void AddToQueue (intf_thread_t *p_this) goto end; /* wait for the user to listen enough before submitting */ - played_time = vlc_tick_now() - p_sys->p_current_song.i_start - - p_sys->time_total_pauses; - played_time /= CLOCK_FREQ; /* µs → s */ + played_time = SEC_FROM_VLC_TICK(vlc_tick_now() - p_sys->p_current_song.i_start - + p_sys->time_total_pauses); /*HACK: it seam that the preparsing sometime fail, so use the playing time as the song length */ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
