diff src/madplug/plugin.c @ 646:ede814584df9 trunk

[svn] - screening by extension had not worked.
author yaz
date Tue, 13 Feb 2007 22:54:57 -0800
parents 0341583ad50c
children 8b9ef7a32e47
line wrap: on
line diff
--- a/src/madplug/plugin.c	Tue Feb 13 22:10:05 2007 -0800
+++ b/src/madplug/plugin.c	Tue Feb 13 22:54:57 2007 -0800
@@ -205,7 +205,8 @@
 
 #if 1
     // XXX: temporary fix
-    if (!strncasecmp("http://", filename, 7) || !strncasecmp("https://", filename, 8)) {
+    if (!strncasecmp("http://", filename, 7) || !strncasecmp("https://", filename, 8))
+    {
         g_message("audmad_is_our_fd: remote");
         info.remote = TRUE;
     }
@@ -213,8 +214,9 @@
 
     /* I've seen some flac files beginning with id3 frames..
        so let's exclude known non-mp3 filename extensions */
-    if (!strcasecmp(".flac", ext) || !strcasecmp(".mpc", ext) ||
-        !strcasecmp(".tta", ext) || !strcasecmp(".ogg", ext))
+    if (!strcasecmp("flac", ext) || !strcasecmp("mpc", ext) ||
+        !strcasecmp("tta", ext) || !strcasecmp("ogg", ext) ||
+	!strcasecmp("wma", ext) )
         return FALSE;
 
     if (fin == NULL)