changeset 646:ede814584df9 trunk

[svn] - screening by extension had not worked.
author yaz
date Tue, 13 Feb 2007 22:54:57 -0800
parents e0d131145768
children f684905cf688
files ChangeLog src/madplug/plugin.c
diffstat 2 files changed, 16 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Feb 13 22:10:05 2007 -0800
+++ b/ChangeLog	Tue Feb 13 22:54:57 2007 -0800
@@ -1,3 +1,14 @@
+2007-02-14 06:10:05 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1376]
+  - revise input_id3_get_string().
+  - make audmad_get_file_info() use mad_parse_genre() to obtain genre description.
+  
+  trunk/src/madplug/Makefile   |    2 +-
+  trunk/src/madplug/fileinfo.c |   10 +++++++---
+  trunk/src/madplug/input.c    |   22 ++++++++++------------
+  3 files changed, 18 insertions(+), 16 deletions(-)
+
+
 2007-02-14 05:50:01 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1374]
   temporary fix for SIGSEGV in g_utf8_validate() when xmlURIEscape returns NULL.
--- 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)