[Mplayer-cvslog] CVS: main/libmpdemux/realrtsp real.c, 1.8, 1.9 rtsp_session.c, 1.7, 1.8
Roberto Togni CVS
syncmail at mplayerhq.hu
Mon Oct 18 22:08:15 CEST 2004
CVS change done by Roberto Togni CVS
Update of /cvsroot/mplayer/main/libmpdemux/realrtsp
In directory mail:/var2/tmp/cvs-serv1865
Modified Files:
real.c rtsp_session.c
Log Message:
EOF detection (fix hanging at end of stream)
Index: real.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/realrtsp/real.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- real.c 8 Sep 2004 23:44:34 -0000 1.8
+++ real.c 18 Oct 2004 20:08:12 -0000 1.9
@@ -618,6 +618,10 @@
#ifdef LOG
printf("got flags1: 0x%02x\n",flags1);
#endif
+ if(header[6] == 0x06) {
+ printf("Stream EOF detected\n");
+ return -1;
+ }
header[0]=header[5];
header[1]=header[6];
header[2]=header[7];
Index: rtsp_session.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/realrtsp/rtsp_session.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rtsp_session.c 28 Aug 2004 20:56:56 -0000 1.7
+++ rtsp_session.c 18 Oct 2004 20:08:12 -0000 1.8
@@ -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;
More information about the MPlayer-cvslog
mailing list