From d8d66952029c89a0b4ffcedc0c22f56c9c01c0ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 25 Jan 2008 22:46:31 +0100 Subject: Advertise proper support for FLAC files. application/x-flac is not reported anywhere. Both file(1) and shared-mime-info report audio/x-flac. Xiph wiki[1] reports audio/flac as being queued for registration. Report both audio/x-flac and audio/flac for compatibility. [1] http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions --- src/combined/demux_flac.c | 3 ++- src/demuxers/demux_flac.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/combined/demux_flac.c b/src/combined/demux_flac.c index 85f98e876..fdc7ab7ea 100644 --- a/src/combined/demux_flac.c +++ b/src/combined/demux_flac.c @@ -732,7 +732,8 @@ get_extensions (demux_class_t *this_gen) { static char * get_mimetypes (demux_class_t *this_gen) { - return "application/x-flac: flac: FLAC Audio;"; + return "audio/x-flac: flac: FLAC Audio;" + "audio/flac: flac: FLAC Audio;"; } static void diff --git a/src/demuxers/demux_flac.c b/src/demuxers/demux_flac.c index 3afb5b031..23e2faef9 100644 --- a/src/demuxers/demux_flac.c +++ b/src/demuxers/demux_flac.c @@ -544,7 +544,8 @@ 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-flac: flac: FLAC Audio;" + "audio/flac: flac: FLAC Audio;"; } static void class_dispose (demux_class_t *this_gen) { -- cgit v1.2.3