aboutsummaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMichael Niedermayer2014-09-25 00:53:36 +0200
committerMichael Niedermayer2014-09-25 01:08:44 +0200
commit6441d522e9fe496b62baa667f063db2bc614cef1 (patch)
tree7539dad87010b729017353203bdd9eb0d93ee0ad /libavformat/rtsp.c
parentd8ddac363e77eb55150c80febc56ad58d53968e8 (diff)
parent2f172f1ae984b763c06069adb51d0053b3834f4b (diff)
Merge commit '2f172f1ae984b763c06069adb51d0053b3834f4b'
* commit '2f172f1ae984b763c06069adb51d0053b3834f4b': rtsp: Clear the session id on redirects Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ce4763edee..0293b04172 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1816,6 +1816,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);