summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-01-25 22:46:31 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-01-25 22:46:31 +0100
commitd8d66952029c89a0b4ffcedc0c22f56c9c01c0ae (patch)
treecb47b850e88c9ef6418d96938a369280fee772f2
parent6c456a0d597c2a96aadee33c7af5845de279e478 (diff)
downloadxine-lib-d8d66952029c89a0b4ffcedc0c22f56c9c01c0ae.tar.gz
xine-lib-d8d66952029c89a0b4ffcedc0c22f56c9c01c0ae.tar.bz2
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
-rw-r--r--src/combined/demux_flac.c3
-rw-r--r--src/demuxers/demux_flac.c3
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) {