[Muine] Patch to detect mp4 files



On my desktop my .m4a files are identified by gnome-vfs as "audio/mp4"
rather than "audio/x-m4a" or "application/x-m4a"

Attached is a patch to support audio/mp4

iain
? mp4.diff
Index: metadata.c
===================================================================
RCS file: /cvs/gnome/muine/libmuine/metadata.c,v
retrieving revision 1.24
diff -u -2 -r1.24 metadata.c
--- metadata.c	12 Oct 2006 22:13:39 -0000	1.24
+++ metadata.c	8 Dec 2006 17:57:28 -0000
@@ -909,5 +909,6 @@
 #if HAVE_FAAD
 	else if (!strcmp (info->mime_type, "application/x-m4a") ||
-		 !strcmp (info->mime_type, "audio/x-m4a"))
+		 !strcmp (info->mime_type, "audio/x-m4a") ||
+		 !strcmp (info->mime_type, "audio/mp4"))
 		m = assign_metadata_mp4 (uri, error_message_return);
 #endif /* HAVE_FAAD */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]