commit b843f3c262691d9cb2c8cfaa5c26a339a7fd61a5 Author: Christophe Fergeau <t...@gnome.org> Date: Wed Jan 19 23:14:53 2011 +0100
use unsigned int for file size in iTunesDB Itdb_Track was storing the track file size as an int32. Changing it to an uint32 will not break ABI and will allow libgpod to support files up to 4GB (up from 2GB previously). Some people have hit the 2GB limit using very large audio books or transcoded DVDs. bindings/mono/libgpod-sharp/Track.cs | 4 ++-- src/itdb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- diff --git a/bindings/mono/libgpod-sharp/Track.cs b/bindings/mono/libgpod-sharp/Track.cs index ce716fa..8431b07 100644 --- a/bindings/mono/libgpod-sharp/Track.cs +++ b/bindings/mono/libgpod-sharp/Track.cs @@ -58,7 +58,7 @@ namespace GPod { public IntPtr sort_composer; public IntPtr sort_tvshow; public uint id; - public int size; + public uint size; public int tracklen; public int cd_nr; public int cds; @@ -319,7 +319,7 @@ namespace GPod { set { var x = (Itdb_Track *) Native; ReplaceStringUTF8(ref x->sort_tvshow, value); } } - public int Size { get { return ((Itdb_Track *) Native)->size; } + public uint Size { get { return ((Itdb_Track *) Native)->size; } set { ((Itdb_Track *) Native)->size = value; } } public int TrackLength { get { return ((Itdb_Track *) Native)->tracklen; } set { ((Itdb_Track *) Native)->tracklen = value; } } diff --git a/src/itdb.h b/src/itdb.h index 645fb5d..774a5c7 100644 --- a/src/itdb.h +++ b/src/itdb.h @@ -1631,7 +1631,7 @@ struct _Itdb_Track gchar *sort_tvshow; /* end of new fields in libgpod 0.5.0 */ guint32 id; - gint32 size; + guint32 size; gint32 tracklen; gint32 cd_nr; gint32 cds; ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2