Commit 77223c53 authored by Martin Storsjö's avatar Martin Storsjö

rtsp: Pass the method name to ff_rtsp_parse_line

Originally committed as revision 26191 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent acc9ed14
...@@ -2895,7 +2895,7 @@ static int rtsp_parse_request(HTTPContext *c) ...@@ -2895,7 +2895,7 @@ static int rtsp_parse_request(HTTPContext *c)
len = sizeof(line) - 1; len = sizeof(line) - 1;
memcpy(line, p, len); memcpy(line, p, len);
line[len] = '\0'; line[len] = '\0';
ff_rtsp_parse_line(header, line, NULL); ff_rtsp_parse_line(header, line, NULL, NULL);
p = p1 + 1; p = p1 + 1;
} }
......
...@@ -685,7 +685,7 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p) ...@@ -685,7 +685,7 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
} }
void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf, void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
RTSPState *rt) RTSPState *rt, const char *method)
{ {
const char *p; const char *p;
...@@ -808,7 +808,7 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, ...@@ -808,7 +808,7 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
reply->status_code = atoi(buf1); reply->status_code = atoi(buf1);
av_strlcpy(reply->reason, p, sizeof(reply->reason)); av_strlcpy(reply->reason, p, sizeof(reply->reason));
} else { } else {
ff_rtsp_parse_line(reply, p, rt); ff_rtsp_parse_line(reply, p, rt, method);
av_strlcat(rt->last_reply, p, sizeof(rt->last_reply)); av_strlcat(rt->last_reply, p, sizeof(rt->last_reply));
av_strlcat(rt->last_reply, "\n", sizeof(rt->last_reply)); av_strlcat(rt->last_reply, "\n", sizeof(rt->last_reply));
} }
......
...@@ -353,7 +353,7 @@ typedef struct RTSPStream { ...@@ -353,7 +353,7 @@ typedef struct RTSPStream {
} RTSPStream; } RTSPStream;
void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf, void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
RTSPState *rt); RTSPState *rt, const char *method);
extern int rtsp_rtp_port_min; extern int rtsp_rtp_port_min;
extern int rtsp_rtp_port_max; extern int rtsp_rtp_port_max;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment