diff libmpdemux/realrtsp/rtsp_session.c @ 13676:929af3b49c8e

EOF detection (fix hanging at end of stream)
author rtognimp
date Mon, 18 Oct 2004 20:08:12 +0000
parents ec342714b8a9
children 88adbc28f60b
line wrap: on
line diff
--- a/libmpdemux/realrtsp/rtsp_session.c	Mon Oct 18 20:00:07 2004 +0000
+++ b/libmpdemux/realrtsp/rtsp_session.c	Mon Oct 18 20:08:12 2004 +0000
@@ -169,6 +169,8 @@
     dest += fill;
     this->recv_read = 0;
     this->recv_size = real_get_rdt_chunk (this->s, (char **)&(this->recv));
+    if (this->recv_size < 0)
+      return -1;
     source = this->recv;
     fill = this->recv_size;