Revision: 1563
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1563&view=rev
Author: jcsjcs
Date: 2007-06-19 06:21:50 -0700 (Tue, 19 Jun 2007)
Log Message:
-----------
* src/file.c: set mediatype to 'audiobook' for .mb4 files.
Modified Paths:
--------------
gtkpod/trunk/ChangeLog_detailed
gtkpod/trunk/src/file.c
Modified: gtkpod/trunk/ChangeLog_detailed
===================================================================
--- gtkpod/trunk/ChangeLog_detailed 2007-06-19 13:20:14 UTC (rev 1562)
+++ gtkpod/trunk/ChangeLog_detailed 2007-06-19 13:21:50 UTC (rev 1563)
@@ -6,6 +6,8 @@
* data/gtkpod.glade: Todd's patch to substitute custom button
with stock button in the export dialog.
+ * src/file.c: set mediatype to 'audiobook' for .mb4 files.
+
2007-06-18 P.G. Richardson <phantom_sf at users.sourceforge.net>
Bug fixes spotted by Daniele Forsi.
Modified: gtkpod/trunk/src/file.c
===================================================================
--- gtkpod/trunk/src/file.c 2007-06-19 13:20:14 UTC (rev 1562)
+++ gtkpod/trunk/src/file.c 2007-06-19 13:21:50 UTC (rev 1563)
@@ -1106,24 +1106,31 @@
case FILE_TYPE_MP3:
nti = mp3_get_file_info (name);
/* Set mediatype to audio */
- if (nti) nti->mediatype = 0x00000001;
+ if (nti) nti->mediatype = ITDB_MEDIATYPE_AUDIO;
break;
case FILE_TYPE_M4A:
case FILE_TYPE_M4P:
- case FILE_TYPE_M4B:
nti = mp4_get_file_info (name);
/* Set mediatype to audio */
if (nti)
{
- nti->mediatype = 0x00000001;
+ nti->mediatype = ITDB_MEDIATYPE_AUDIO;
}
break;
+ case FILE_TYPE_M4B:
+ nti = mp4_get_file_info (name);
+ /* Set mediatype to audiobook */
+ if (nti)
+ {
+ nti->mediatype = ITDB_MEDIATYPE_AUDIOBOOK;
+ }
+ break;
case FILE_TYPE_WAV:
nti = wav_get_file_info (name);
/* Set mediatype to audio */
if (nti)
{
- nti->mediatype = 0x00000001;
+ nti->mediatype = ITDB_MEDIATYPE_AUDIO;
}
break;
case FILE_TYPE_OGG:
@@ -1131,7 +1138,7 @@
/* Set unk208 to audio */
if (nti)
{
- nti->mediatype = 0x00000001;
+ nti->mediatype = ITDB_MEDIATYPE_AUDIO;
}
break;
case FILE_TYPE_FLAC:
@@ -1139,7 +1146,7 @@
/* Set unk208 to audio */
if (nti)
{
- nti->mediatype = 0x00000001;
+ nti->mediatype = ITDB_MEDIATYPE_AUDIO;
}
break;
case FILE_TYPE_M4V:
@@ -1151,7 +1158,7 @@
/* Set mediatype to video */
if (nti)
{
- nti->mediatype = 0x00000002;
+ nti->mediatype = ITDB_MEDIATYPE_MOVIE;
nti->movie_flag = 0x01;
}
break;
@@ -1162,7 +1169,7 @@
/* Set mediatype to video */
if (nti)
{
- nti->mediatype = 0x00000002;
+ nti->mediatype = ITDB_MEDIATYPE_MOVIE;
nti->movie_flag = 0x01;
}
break;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2