changeset 17032:7d0773bb1e42

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
author rtognimp
date Tue, 22 Nov 2005 19:24:09 +0000
parents da7759ed81be
children df9285f39236
files libmpdemux/realrtsp/rtsp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/realrtsp/rtsp.c	Tue Nov 22 17:36:00 2005 +0000
+++ b/libmpdemux/realrtsp/rtsp.c	Tue Nov 22 19:24:09 2005 +0000
@@ -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)