diff src/linuxplay.c @ 233:52952cbfc5b5 r20-5b15

Import from CVS: tag r20-5b15
author cvs
date Mon, 13 Aug 2007 10:14:14 +0200
parents 41ff10fd062f
children c5d627a313b1
line wrap: on
line diff
--- a/src/linuxplay.c	Mon Aug 13 10:13:49 2007 +0200
+++ b/src/linuxplay.c	Mon Aug 13 10:14:14 2007 +0200
@@ -962,7 +962,7 @@
 
   /* We need to read at least the header information before we can start
      doing anything */
-  if (!data || length < HEADERSZ)
+  if (!data || length < HEADERSZ) {
     if (fd < 0) return;
     else {
       length = read(fd,linuxplay_sndbuf,SNDBUFSZ);
@@ -970,6 +970,7 @@
 	return;
       data   = linuxplay_sndbuf;
       length = SNDBUFSZ; }
+  }
 
   ffmt = analyze_format(data,&fmt,&speed,&tracks,&parsesndfile);