summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/network.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/network.c b/stream/network.c
index f6956e46da..ce04444144 100644
--- a/stream/network.c
+++ b/stream/network.c
@@ -467,6 +467,7 @@ 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));
+ ret = 0;
} else if (ret == 0)
stream_ctrl->status = streaming_stopped_e;
len += ret;