Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2059/src
Modified Files:
details.c misc_track.c
Log Message:
* src/misc_track (track_scan_length): work around problem in
conversion from gdouble to gint32 which caused playlength
be set incorrectly (most notable in write-through mode in
the edit details window).
Index: details.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/details.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- details.c 2 Jun 2006 17:54:24 -0000 1.14
+++ details.c 4 Jul 2006 15:37:42 -0000 1.15
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-03 02:52:34 jcs>
+/* Time-stamp: <2006-07-04 23:59:08 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
Index: misc_track.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/misc_track.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- misc_track.c 23 Jun 2006 16:59:23 -0000 1.49
+++ misc_track.c 4 Jul 2006 15:37:42 -0000 1.50
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-24 01:53:44 jcs>
+/* Time-stamp: <2006-07-05 00:34:11 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -969,11 +969,14 @@
str = strrchr (new_text, ':');
if (str)
{ /* MM:SS */
- nr = 1000 * (((float)(60 * atoi (new_text))) + atof (str+1));
+ /* A simple cast to gint32 can sometimes produce a number
+ that's "1" too small (14.9999999999 -> 14 instead of 15) ->
+ add 0.1 */
+ nr = 1000 * (((gdouble)(60 * atoi (new_text))) + atof (str+1)) + 0.1;
}
else
{ /* SS */
- nr = 1000 * atof (new_text);
+ nr = 1000 * atof (new_text) + 0.1;
}
return nr;
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2