Add MIME types for the aac and mp4 input plugins. Note that these won't

have any effect until the aac and mp4 input plugins actually support a
stream decoding API.

git-svn-id: https://svn.musicpd.org/mpd/trunk@6481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-06-04 18:57:34 +00:00
parent 71094905e3
commit caa17db85e
2 changed files with 8 additions and 6 deletions

View File

@ -453,7 +453,8 @@ static MpdTag *aacTagDup(char *file)
return ret; return ret;
} }
static char *aacSuffixes[] = { "aac", NULL }; static char *aac_suffixes[] = { "aac", NULL };
static char *aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL };
InputPlugin aacPlugin = { InputPlugin aacPlugin = {
"aac", "aac",
@ -464,8 +465,8 @@ InputPlugin aacPlugin = {
aac_decode, aac_decode,
aacTagDup, aacTagDup,
INPUT_PLUGIN_STREAM_FILE, INPUT_PLUGIN_STREAM_FILE,
aacSuffixes, aac_suffixes,
NULL aac_mimeTypes
}; };
#else #else

View File

@ -433,7 +433,8 @@ static MpdTag *mp4TagDup(char *file)
return ret; return ret;
} }
static char *mp4Suffixes[] = { "m4a", "mp4", NULL }; static char *mp4_suffixes[] = { "m4a", "mp4", NULL };
static char *mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL };
InputPlugin mp4Plugin = { InputPlugin mp4Plugin = {
"mp4", "mp4",
@ -444,8 +445,8 @@ InputPlugin mp4Plugin = {
mp4_decode, mp4_decode,
mp4TagDup, mp4TagDup,
INPUT_PLUGIN_STREAM_FILE, INPUT_PLUGIN_STREAM_FILE,
mp4Suffixes, mp4_suffixes,
NULL mp4_mimeTypes
}; };
#else #else