# HG changeset patch # User nenolod # Date 1140381576 28800 # Node ID 4b67e530016954b0fec32431dabd6ba0c6e11dae # Parent 8b24c71b91dffd153f9dc0af8341fbdfc89c0862 [svn] FIX diff -r 8b24c71b91df -r 4b67e5300169 Plugins/Input/mpg123/mpg123.c --- a/Plugins/Input/mpg123/mpg123.c Sun Feb 19 08:36:35 2006 -0800 +++ b/Plugins/Input/mpg123/mpg123.c Sun Feb 19 12:39:36 2006 -0800 @@ -368,27 +368,13 @@ static int is_our_file(char *filename) { + gchar *ext = strrchr(filename, '.'); + if (!strncasecmp(filename, "http://", 7)) { return mpg123_detect_by_content_stream(filename); } -#ifdef NOTYET - else if (! + else if (strncasecmp(ext, ".mp3")) return (mpg123_detect_by_content(filename)); -#endif - else - { - gchar *ext = strrchr(filename, '.'); - if (ext) { - if (!strncasecmp(ext, ".ogg", 4)) - return FALSE; - if (!strncasecmp(ext, ".rm", 3) || - !strncasecmp(ext, ".ra", 3) || - !strncasecmp(ext, ".rpm", 4) || - !strncasecmp(ext, ".ram", 4)) - return FALSE; - } - return TRUE; - } return FALSE; }