[MPlayer-cvslog] CVS: main/libmpdemux/realrtsp rtsp.c,1.15,1.16

Roberto Togni CVS syncmail at mplayerhq.hu
Tue Nov 22 20:24:12 CET 2005


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux/realrtsp
In directory mail:/var2/tmp/cvs-serv26585

Modified Files:
	rtsp.c 
Log Message:
Ignore OPTIONS rtsp command during playback. Fixes 
rtsp://mms.sonix.de/universal/rock/apocalyptica_lifeburns_300.rm?start=0 
(playback stopped after 82 sec)
Patch by adland


Index: rtsp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/realrtsp/rtsp.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- rtsp.c	3 Sep 2005 10:58:52 -0000	1.15
+++ rtsp.c	22 Nov 2005 19:24:09 -0000	1.16
@@ -576,7 +576,8 @@
   if (size>=4) {
     i=read_stream(s->s, buffer, 4);
     if (i<4) return i;
-    if ((buffer[0]=='S')&&(buffer[1]=='E')&&(buffer[2]=='T')&&(buffer[3]=='_'))
+    if (((buffer[0]=='S')&&(buffer[1]=='E')&&(buffer[2]=='T')&&(buffer[3]=='_')) ||
+        ((buffer[0]=='O')&&(buffer[1]=='P')&&(buffer[2]=='T')&&(buffer[3]=='I'))) // OPTIONS
     {
       char *rest=rtsp_get(s);
       if (!rest)




More information about the MPlayer-cvslog mailing list