Author: sayer
Date: 2008-05-15 18:13:13 +0200 (Thu, 15 May 2008)
New Revision: 966

Modified:
   trunk/core/plug-in/wav/wav_hdr.c
Log:
be a bit more verbouse if fread fails

Modified: trunk/core/plug-in/wav/wav_hdr.c
===================================================================
--- trunk/core/plug-in/wav/wav_hdr.c    2008-05-15 16:07:37 UTC (rev 965)
+++ trunk/core/plug-in/wav/wav_hdr.c    2008-05-15 16:13:13 UTC (rev 966)
@@ -58,7 +58,11 @@
 
 #define SAFE_READ(buf,s,fp,sr) \
     sr = fread(buf,s,1,fp);\
-    if((sr != 1) || ferror(fp)) return -1;
+    if((sr != 1) || ferror(fp)) { \
+      ERROR("fread: %s (sr=%d)\n", strerror(errno), sr);       \
+    return -1;                                 \
+    }
+\
 
 /** \brief The file header of RIFF-WAVE files (*.wav). 
  * Files are always in

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to