changeset 777:f3ee3610ca26 trunk

[svn] - do not use type/magic detection here
author nenolod
date Wed, 01 Mar 2006 11:29:36 -0800
parents 9f42493bdec1
children 69d3bb31aa49
files Plugins/Input/mpg123/mpg123.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/mpg123/mpg123.c	Wed Mar 01 11:17:23 2006 -0800
+++ b/Plugins/Input/mpg123/mpg123.c	Wed Mar 01 11:29:36 2006 -0800
@@ -231,6 +231,7 @@
 }
 
 
+#if 0
 #define DET_BUF_SIZE 1024
 
 static gboolean
@@ -294,6 +295,7 @@
     vfs_fclose(file);
     return ret;
 }
+#endif
 
 static int
 is_our_file(char *filename)
@@ -302,8 +304,10 @@
 
     if (!strncasecmp(filename, "http://", 7) && (ext && strncasecmp(ext, ".ogg", 4)))
 	return TRUE;
-    else if (ext && strncasecmp(ext, ".mp3", 4))
-        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;
 }