diff src/madplug/input.c @ 789:354c69a939bc trunk

[svn] revising vfs_fread() check code. - check vfs handle code has been restored to original position. - accidentally removed substitution to ret has been restored. - in audmad_is_our_fd(), check code just puts log message instead of return. please let me know if log message would be put upon proper mp3 file. - in scan_file(), check code returns if vfs_fread() fails. this fixes open audio with bogus parameters problem.
author yaz
date Tue, 06 Mar 2007 22:08:18 -0800
parents 2461b711162b
children 91d2b302f479
line wrap: on
line diff
--- a/src/madplug/input.c	Tue Mar 06 15:43:15 2007 -0800
+++ b/src/madplug/input.c	Tue Mar 06 22:08:18 2007 -0800
@@ -557,9 +557,8 @@
     /* simply read to data from the file */
     len = vfs_fread(buffer, 1, buffer_size, info->infile); //vfs_fread returns num of elements.
 
-    if(len == 0){
-	    if(info->playback)
-		    info->playback->eof = TRUE;
+    if(len == 0 && info->playback){
+        info->playback->eof = TRUE;
     }
 
 #ifdef DEBUG