[prev in list] [next in list] [prev in thread] [next in thread]
List: xine-cvslog
Subject: [xine-cvs] HG: xine-lib: Add Mimetypes to src/demuxers/demux_mod.c
From: Shlomi Fish <shlomif () iglu ! org ! il>
Date: 2009-03-25 20:15:25
Message-ID: df593bbccd3b65b2c176.1238009321 () hg ! debian ! org
[Download RAW message or body]
# HG changeset patch
# User Shlomi Fish <shlomif@iglu.org.il>
# Date 1238009321 0
# Node ID df593bbccd3b65b2c176e98e1389bc17bcb84130
# Parent 7d06db034218e3f370c3211d1f11856a0db38ed3
Add Mimetypes to src/demuxers/demux_mod.c
This patch adds mimetypes to src/demuxers/demux_mod.c for the file types it
can handle. After this patch is applied, then xine_get_mime_types() reports
them correctly, which allows Amarok 2.x to play them and probably prevents
other interoperability problems.
Previously Amarok 2.x rejected MOD/S3M/IT/XM/etc. files that were enqueued
there when using the xine phonon backend because their mime types were not
included in those announced by xine-lib.
diff -r df593bbccd3b65b2c176e98e1389bc17bcb84130 -r \
7d06db034218e3f370c3211d1f11856a0db38ed3 src/demuxers/demux_mod.c
--- a/src/demuxers/demux_mod.c Wed Mar 25 19:28:41 2009 +0000
+++ b/src/demuxers/demux_mod.c Sun Mar 22 16:55:47 2009 +1030
@@ -379,7 +379,19 @@ static const char *get_extensions (demux
}
static const char *get_mimetypes (demux_class_t *this_gen) {
- return NULL;
+ return "audio/x-mod: mod: SoundTracker/NoiseTracker/ProTracker Module;"
+ "audio/mod: mod: SoundTracker/NoiseTracker/ProTracker Module;"
+ "audio/it: it: ImpulseTracker Module;"
+ "audio/x-it: it: ImpulseTracker Module;"
+ "audio/x-stm: stm: ScreamTracker 2 Module;"
+ "audio/x-s3m: s3m: ScreamTracker 3 Module;"
+ "audio/s3m: s3m: ScreamTracker 3 Module;"
+ "application/playerpro: 669: 669 Tracker Module;"
+ "application/adrift; amf: ADRIFT Module File;"
+ "audio/med; med; Amiga MED/OctaMED Tracker Module Sound File;"
+ "audio/x-amf; amf: ADRIFT Module File;"
+ "audio/x-xm; xm: FastTracker II Audio;"
+ "audio/xm; xm: FastTracker II Audio;";
}
static void class_dispose (demux_class_t *this_gen) {
------------------------------------------------------------------------------
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic