Revision 3df54c6b libavformat/rtsp.c

View differences:

libavformat/rtsp.c
758 758

  
759 759
int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
760 760
                       unsigned char **content_ptr,
761
                       int return_on_interleaved_data)
761
                       int return_on_interleaved_data, const char *method)
762 762
{
763 763
    RTSPState *rt = s->priv_data;
764 764
    char buf[4096], buf1[1024], *q;
......
936 936
                                                   send_content_length)))
937 937
        return ret;
938 938

  
939
    if ((ret = ff_rtsp_read_reply(s, reply, content_ptr, 0) ) < 0)
939
    if ((ret = ff_rtsp_read_reply(s, reply, content_ptr, 0, method) ) < 0)
940 940
        return ret;
941 941

  
942 942
    if (reply->status_code == 401 && cur_auth_type == HTTP_AUTH_NONE &&
......
1512 1512
            if (tcp_fd != -1 && FD_ISSET(tcp_fd, &rfds)) {
1513 1513
                RTSPMessageHeader reply;
1514 1514

  
1515
                ret = ff_rtsp_read_reply(s, &reply, NULL, 0);
1515
                ret = ff_rtsp_read_reply(s, &reply, NULL, 0, NULL);
1516 1516
                if (ret < 0)
1517 1517
                    return ret;
1518 1518
                /* XXX: parse message */

Also available in: Unified diff