changeset 775:a24cc8848b9a trunk

[svn] - with fixed curl, read id3 tag over network works now.
author yaz
date Sat, 03 Mar 2007 05:55:23 -0800
parents b02927277ccb
children 8366ad444313
files ChangeLog src/madplug/input.c
diffstat 2 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Mar 03 05:34:23 2007 -0800
+++ b/ChangeLog	Sat Mar 03 05:55:23 2007 -0800
@@ -1,3 +1,11 @@
+2007-03-03 13:34:23 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [1646]
+  - fread() should return number of items.
+  
+  trunk/src/curl/curl.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-03-03 04:28:55 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
   revision [1644]
   - reduce connection latency to http stream.
--- a/src/madplug/input.c	Sat Mar 03 05:34:23 2007 -0800
+++ b/src/madplug/input.c	Sat Mar 03 05:55:23 2007 -0800
@@ -363,14 +363,10 @@
     else
         title_input = info->tuple;
 
-#define REUSE_FD 1
-#if REUSE_FD
-    if(info->infile) {
+    if(info->infile)
         info->id3file = id3_file_vfsopen(info->infile, ID3_FILE_MODE_READONLY);
-    }
     else
-#endif
-      info->id3file = id3_file_open(info->filename, ID3_FILE_MODE_READONLY);
+        info->id3file = id3_file_open(info->filename, ID3_FILE_MODE_READONLY);
 
     if (!info->id3file) {
 #ifdef DEBUG
@@ -499,9 +495,9 @@
 #endif                          /* DEBUG */
 
     input_alloc_tag(info);
+    input_read_tag(info);
 
     if(!info->remote) { // reduce startup delay
-        input_read_tag(info);
         read_replaygain(info);
     }