[MPlayer-cvslog] r33806 - trunk/stream/network.c
    reimar 
    subversion at mplayerhq.hu
       
    Mon Jul  4 21:10:18 CEST 2011
    
    
  
Author: reimar
Date: Mon Jul  4 21:10:17 2011
New Revision: 33806
Log:
Signal EOF vs. error also via streaming control API (not yet evaluated).
Modified:
   trunk/stream/network.c
Modified: trunk/stream/network.c
==============================================================================
--- trunk/stream/network.c	Mon Jul  4 02:36:08 2011	(r33805)
+++ trunk/stream/network.c	Mon Jul  4 21:10:17 2011	(r33806)
@@ -457,7 +457,8 @@ nop_streaming_read( int fd, char *buffer
 		ret = recv( fd, buffer+len, size-len, 0 );
 		if( ret<0 ) {
 			mp_msg(MSGT_NETWORK,MSGL_ERR,"nop_streaming_read error : %s\n",strerror(errno));
-		}
+		} else if (ret == 0)
+			stream_ctrl->status = streaming_stopped_e;
 		len += ret;
 //printf("read %d bytes from network\n", len );
 	}
    
    
More information about the MPlayer-cvslog
mailing list