[FFmpeg-cvslog] rtsp: Clear the session id on redirects
Martin Storsjö
git at videolan.org
Thu Sep 25 01:09:15 CEST 2014
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Sep 24 11:31:18 2014 +0300| [2f172f1ae984b763c06069adb51d0053b3834f4b] | committer: Martin Storsjö
rtsp: Clear the session id on redirects
This fixes handling redirects in case the server provided a session
id within the redirect reply.
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2f172f1ae984b763c06069adb51d0053b3834f4b
---
libavformat/rtsp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 23d7da1..646712e 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1812,6 +1812,7 @@ redirect:
ff_rtsp_close_connections(s);
if (reply->status_code >=300 && reply->status_code < 400 && s->iformat) {
av_strlcpy(s->filename, reply->location, sizeof(s->filename));
+ rt->session_id[0] = '\0';
av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
reply->status_code,
s->filename);
More information about the ffmpeg-cvslog
mailing list