Revision: 2204
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2204&view=rev
Author:   jcsjcs
Date:     2009-01-11 10:13:15 +0000 (Sun, 11 Jan 2009)

Log Message:
-----------
        * src/mp3file.c: correct programming error when determining offset
          of the LAME tag. Thanks to <Anonymous> for submitting tracker
          #2490479.

Modified Paths:
--------------
    gtkpod/trunk/ChangeLog
    gtkpod/trunk/src/mp3file.c

Modified: gtkpod/trunk/ChangeLog
===================================================================
--- gtkpod/trunk/ChangeLog      2009-01-06 15:43:45 UTC (rev 2203)
+++ gtkpod/trunk/ChangeLog      2009-01-11 10:13:15 UTC (rev 2204)
@@ -1,3 +1,9 @@
+2008-01-11 Jorg Schuler <jcsjcs at users.sourceforge.net>
+
+       * src/mp3file.c: correct programming error when determining offset
+         of the LAME tag. Thanks to <Anonymous> for submitting tracker
+         #2490479.
+
 2009-01-04  Todd Zullinger  <tmzullinger at users.sourceforge.net>
 
        * configure.in, data/man/gtkpod.1 -> data/man/gtkpod.1.in:

Modified: gtkpod/trunk/src/mp3file.c
===================================================================
--- gtkpod/trunk/src/mp3file.c  2009-01-06 15:43:45 UTC (rev 2203)
+++ gtkpod/trunk/src/mp3file.c  2009-01-11 10:13:15 UTC (rev 2204)
@@ -1,4 +1,4 @@
-/* Time-stamp: <2008-11-08 16:22:13 jcs>
+/* Time-stamp: <2009-01-11 17:52:48 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -2391,19 +2391,19 @@
 
     /* Determine the offset of the LAME tag based on contents of the Xing 
header */
     fread (&flags, 4, 1, mp3i->file);
-    if (flags | 0x1)
+    if (flags & FRAMES_FLAG)
     {                          /* frames field is set */
        toskip += 4;
     }
-    if (flags | 0x2)
+    if (flags & BYTES_FLAG)
     {                          /* bytes field is set */
        toskip += 4;
     }
-    if (flags | 0x4)
+    if (flags & TOC_FLAG)
     {                          /* TOC field is set */
        toskip += 100;
     }
-    if (flags | 0x8)
+    if (flags & VBR_SCALE_FLAG)
     {                          /* quality field is set */
        toskip += 4;
     }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to