summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/network.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/network.c b/stream/network.c
index b722023061..f6956e46da 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -467,7 +467,8 @@ nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctr
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 );
}