Revision 77223c53

View differences:

ffserver.c
2895 2895
            len = sizeof(line) - 1;
2896 2896
        memcpy(line, p, len);
2897 2897
        line[len] = '\0';
2898
        ff_rtsp_parse_line(header, line, NULL);
2898
        ff_rtsp_parse_line(header, line, NULL, NULL);
2899 2899
        p = p1 + 1;
2900 2900
    }
2901 2901

  
libavformat/rtsp.c
685 685
}
686 686

  
687 687
void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
688
                        RTSPState *rt)
688
                        RTSPState *rt, const char *method)
689 689
{
690 690
    const char *p;
691 691

  
......
808 808
            reply->status_code = atoi(buf1);
809 809
            av_strlcpy(reply->reason, p, sizeof(reply->reason));
810 810
        } else {
811
            ff_rtsp_parse_line(reply, p, rt);
811
            ff_rtsp_parse_line(reply, p, rt, method);
812 812
            av_strlcat(rt->last_reply, p,    sizeof(rt->last_reply));
813 813
            av_strlcat(rt->last_reply, "\n", sizeof(rt->last_reply));
814 814
        }
libavformat/rtsp.h
353 353
} RTSPStream;
354 354

  
355 355
void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
356
                        RTSPState *rt);
356
                        RTSPState *rt, const char *method);
357 357

  
358 358
extern int rtsp_rtp_port_min;
359 359
extern int rtsp_rtp_port_max;

Also available in: Unified diff