gnump3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnump3d-users] [Patch] Fixed wrong playlength in generated playlist fil


From: C. Menge
Subject: [Gnump3d-users] [Patch] Fixed wrong playlength in generated playlist files
Date: Tue, 20 Sep 2005 11:14:32 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b) Gecko/20050217

In playlist files generated on the fly by GNUmp3d, all playlength values
are off by a factor of 60.
I did a little research and found the reason in tagcache.pm, where the
values for seconds, minutes and hours are multiplied by 60 once too often.

The attached patch fixes that - I hereby apply for CVS-checkin :-)


      C├ędric
386,388c386,388
<           $length = ( $secs * 60 ) +
<                     ( $mins * 60 * 60 ) +
<                     ( $hours * 60 * 60 * 60 );
---
>           $length = ( $secs) +
>                     ( $mins * 60 ) +
>                     ( $hours * 3600 );

reply via email to

[Prev in Thread] Current Thread [Next in Thread]