Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv11326/src

Modified Files:
        file.c file_itunesdb.c 
Log Message:

Patch from Rommel G. Custodio <sessyargc at yahoo.com> that allows 
current CVS gtkpod to compile with current CVS libgpod.



Index: file.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/file.c,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- file.c      24 Sep 2006 06:42:52 -0000      1.188
+++ file.c      9 Nov 2006 07:49:24 -0000       1.189
@@ -851,7 +851,7 @@
     to->time_modified = from->time_modified;
     to->year = from->year;
     to->compilation = from->compilation;
-    to->unk208 = from->unk208;
+    to->mediatype = from->mediatype;
     to->lyrics_flag = from->lyrics_flag;
     to->movie_flag = from->movie_flag;
 }
@@ -1069,25 +1069,25 @@
     {
     case FILE_TYPE_MP3:
        nti = mp3_get_file_info (name);
-       /* Set unk208 to audio */
-       if (nti) nti->unk208 = 0x00000001;
+       /* Set mediatype to audio */
+       if (nti) nti->mediatype = 0x00000001;
        break;
     case FILE_TYPE_M4A:
     case FILE_TYPE_M4P:
     case FILE_TYPE_M4B:
        nti = mp4_get_file_info (name);
-       /* Set unk208 to audio */
+       /* Set mediatype to audio */
        if (nti)
        {
-           nti->unk208 = 0x00000001;
+           nti->mediatype = 0x00000001;
        }
        break;
     case FILE_TYPE_WAV:
        nti = wav_get_file_info (name);
-       /* Set unk208 to audio */
+       /* Set mediatype to audio */
        if (nti)
        {
-           nti->unk208 = 0x00000001;
+           nti->mediatype = 0x00000001;
        }
        break;
     case FILE_TYPE_M4V:
@@ -1096,10 +1096,10 @@
           this. Let's see if someone complains. */
        nti = mp4_get_file_info (name);
        if (!nti) video_get_file_info (name);
-       /* Set unk208 to video */
+       /* Set mediatype to video */
        if (nti)
        {
-           nti->unk208 = 0x00000002;
+           nti->mediatype = 0x00000002;
            nti->movie_flag = 0x01;
        }       
        break;
@@ -1107,10 +1107,10 @@
     case FILE_TYPE_MPG:
        /* for now treat all the same */
        nti = video_get_file_info (name);
-       /* Set unk208 to video */
+       /* Set mediatype to video */
        if (nti)
        {
-           nti->unk208 = 0x00000002;
+           nti->mediatype = 0x00000002;
            nti->movie_flag = 0x01;
        }
        break;

Index: file_itunesdb.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/file_itunesdb.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- file_itunesdb.c     25 Jun 2006 16:08:22 -0000      1.99
+++ file_itunesdb.c     9 Nov 2006 07:49:24 -0000       1.100
@@ -589,9 +589,9 @@
                track->has_artwork = 0x02;
        }
 
-       /* set unk208 to audio if unset (important only for iPod Video) */
-       if (track->unk208 == 0)
-           track->unk208 = 0x00000001;
+       /* set mediatype to audio if unset (important only for iPod Video) */
+       if (track->mediatype == 0)
+           track->mediatype = 0x00000001;
        /* restore deleted thumbnails */
        if ((track->artwork->thumbnails == NULL) &&
            (strlen (etr->thumb_path_locale) != 0))


-------------------------------------------------------------------------
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

Reply via email to