commit 13739290d7d2725cc929954f5f8c9e80fab05c9d
Author: Alan McGovern <alan.mcgov...@gmail.com>
Date:   Thu Aug 26 11:33:07 2010 +0100

    [mono] fix size of gbooleans struct members
    
    They are 32bit integers so don't marshal them as 1 byte integers.
    Fixes corrupt data when transferring tracks.

 bindings/mono/libgpod-sharp/Track.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/bindings/mono/libgpod-sharp/Track.cs 
b/bindings/mono/libgpod-sharp/Track.cs
index c64b508..218c238 100644
--- a/bindings/mono/libgpod-sharp/Track.cs
+++ b/bindings/mono/libgpod-sharp/Track.cs
@@ -74,7 +74,7 @@ namespace GPod {
                        public uint      playcount;
                        public uint      playcount2;
                        public uint      recent_playcount;
-                       public bool      transferred;
+                       public int           transferred;
                        public short     BPM;
                        public byte      app_rating;
                        public byte      type1;
@@ -348,8 +348,8 @@ namespace GPod {
                                                                                
                                  set { ((Itdb_Track *) Native)->playcount2 = 
value; } }
                public uint                     RecentPlayCount                 
        { get { return ((Itdb_Track *) Native)->recent_playcount; }
                                                                                
                                  set { ((Itdb_Track *) 
Native)->recent_playcount = value; } }
-               public bool                     Transferred                     
                { get { return ((Itdb_Track *) Native)->transferred; }
-                                                                               
                                  set { ((Itdb_Track *) Native)->transferred = 
value; } }
+               public bool                     Transferred                     
                { get { return ((Itdb_Track *) Native)->transferred != 0; }
+                                                                               
                                  set { ((Itdb_Track *) Native)->transferred = 
value ? 1 : 0; } }
                public short            BPM                                     
                { get { return ((Itdb_Track *) Native)->BPM; }
                                                                                
                                  set { ((Itdb_Track *) Native)->BPM = value; } 
}
                public byte             AppRating                               
        { get { return ((Itdb_Track *) Native)->app_rating; }

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to