changeset 647:4b67e5300169 trunk

[svn] FIX
author nenolod
date Sun, 19 Feb 2006 12:39:36 -0800
parents 8b24c71b91df
children ddec8f9931d9
files Plugins/Input/mpg123/mpg123.c
diffstat 1 files changed, 3 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }