diff options
author | Shlomi Fish <shlomif@iglu.org.il> | 2009-03-25 19:28:41 +0000 |
---|---|---|
committer | Shlomi Fish <shlomif@iglu.org.il> | 2009-03-25 19:28:41 +0000 |
commit | 075a4b4d2ff96d2576993e9dab0bb1532810918e (patch) | |
tree | 5fd8528fad18ead46854a88f4d88f234844cff15 | |
parent | 271fbfe408a9ee21e72d7c95cec46941b55e5791 (diff) | |
download | xine-lib-075a4b4d2ff96d2576993e9dab0bb1532810918e.tar.gz xine-lib-075a4b4d2ff96d2576993e9dab0bb1532810918e.tar.bz2 |
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.
-rw-r--r-- | src/demuxers/demux_mod.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/demuxers/demux_mod.c b/src/demuxers/demux_mod.c index 073927707..c67f6e18e 100644 --- a/src/demuxers/demux_mod.c +++ b/src/demuxers/demux_mod.c @@ -379,7 +379,19 @@ static const char *get_extensions (demux_class_t *this_gen) { } 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) { |