Mercurial > audlegacy
changeset 763:4da914641039 trunk
[svn] - lets not use mpg123_detect_by_content
author | nenolod |
---|---|
date | Wed, 01 Mar 2006 09:34:21 -0800 |
parents | a22aa7bfa108 |
children | e675740173ca |
files | Plugins/Input/mpg123/mpg123.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Input/mpg123/mpg123.c Wed Mar 01 09:07:09 2006 -0800 +++ b/Plugins/Input/mpg123/mpg123.c Wed Mar 01 09:34:21 2006 -0800 @@ -299,10 +299,12 @@ if (!strncasecmp(filename, "http://", 7) && (ext && strncasecmp(ext, ".ogg", 4))) return TRUE; - else if (ext && strncasecmp(ext, ".mp3", 4)) /* If extension ends in .mp3, let it be --nenolod */ - return (mpg123_detect_by_content(filename)); + else if (ext && (!strncasecmp(ext, ".mp3", 4) || + !strncasecmp(ext, ".mp2", 4) || + !strncasecmp(ext, ".mpg", 4))) + return TRUE; - return TRUE; /* Why? The file ends in .mp3. Lalala. */ + return FALSE; } static void