1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00

Don't try to reread from the socket if the server says EOF

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7311 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
bertrand 2002-09-07 20:38:44 +00:00
parent 488c6ad710
commit afe4a4e96f

View File

@ -660,7 +660,7 @@ asf_http_streaming_start( stream_t *stream ) {
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;