Add Mimetypes to src/demuxers/demux_mod.c
authorShlomi Fish <shlomif@iglu.org.il>
Wed, 25 Mar 2009 19:28:41 +0000
changeset 9748df593bbccd3b
parent 9747 7d06db034218
child 9749 f26c4ce7e10a
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.
src/demuxers/demux_mod.c
     1.1 --- a/src/demuxers/demux_mod.c	Sun Mar 22 16:55:47 2009 +1030
     1.2 +++ b/src/demuxers/demux_mod.c	Wed Mar 25 19:28:41 2009 +0000
     1.3 @@ -379,7 +379,19 @@
     1.4  }
     1.5  
     1.6  static const char *get_mimetypes (demux_class_t *this_gen) {
     1.7 -  return NULL;
     1.8 +  return "audio/x-mod: mod: SoundTracker/NoiseTracker/ProTracker Module;"
     1.9 +         "audio/mod: mod: SoundTracker/NoiseTracker/ProTracker Module;"
    1.10 +         "audio/it: it: ImpulseTracker Module;"
    1.11 +         "audio/x-it: it: ImpulseTracker Module;"
    1.12 +         "audio/x-stm: stm: ScreamTracker 2 Module;"
    1.13 +         "audio/x-s3m: s3m: ScreamTracker 3 Module;"
    1.14 +         "audio/s3m: s3m: ScreamTracker 3 Module;"
    1.15 +         "application/playerpro: 669: 669 Tracker Module;"
    1.16 +         "application/adrift; amf: ADRIFT Module File;"
    1.17 +         "audio/med; med; Amiga MED/OctaMED Tracker Module Sound File;"
    1.18 +         "audio/x-amf; amf: ADRIFT Module File;"
    1.19 +         "audio/x-xm; xm: FastTracker II Audio;"
    1.20 +         "audio/xm; xm: FastTracker II Audio;";
    1.21  }
    1.22  
    1.23  static void class_dispose (demux_class_t *this_gen) {