summaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-01-02 10:10:12 +0000
committerMartin Storsjö <martin@martin.st>2011-01-02 10:10:12 +0000
commit77223c5388ca7bfea2232afeb05b05fcc536de6f (patch)
tree984b384b1f8e192bf8c3dd3d28470cf660ec2056 /libavformat/rtsp.c
parentacc9ed14507c8a25c6ba633065311ceafb09e8e0 (diff)
downloadffmpeg-streaming-77223c5388ca7bfea2232afeb05b05fcc536de6f.zip
ffmpeg-streaming-77223c5388ca7bfea2232afeb05b05fcc536de6f.tar.gz
rtsp: Pass the method name to ff_rtsp_parse_line
Originally committed as revision 26191 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index bc7e4e1..4ba5cef 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -685,7 +685,7 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
}
void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
- RTSPState *rt)
+ RTSPState *rt, const char *method)
{
const char *p;
@@ -808,7 +808,7 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
reply->status_code = atoi(buf1);
av_strlcpy(reply->reason, p, sizeof(reply->reason));
} 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, "\n", sizeof(rt->last_reply));
}
OpenPOWER on IntegriCloud