1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-14 19:05:33 +00:00

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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17033 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2005-11-22 19:24:09 +00:00
parent e6e448a23e
commit 7d81d69dd5

View File

@ -576,7 +576,8 @@ int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size) {
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)