changeset 7310:d8e2623a2ea1

Don't try to reread from the socket if the server says EOF
author bertrand
date Sat, 07 Sep 2002 20:38:44 +0000
parents 10f629e33ee6
children f617792eebb0
files libmpdemux/asf_streaming.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asf_streaming.c	Sat Sep 07 20:37:09 2002 +0000
+++ b/libmpdemux/asf_streaming.c	Sat Sep 07 20:38:44 2002 +0000
@@ -660,7 +660,7 @@
 		do {
 			i = read( fd, buffer, BUFFER_SIZE );
 //printf("read: %d\n", i );
-			if( i<0 ) {
+			if( i<=0 ) {
 				perror("read");
 				http_free( http_hdr );
 				return -1;