Commit 2f172f1a authored by Martin Storsjö's avatar 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: 's avatarMartin Storsjö <martin@martin.st>
parent ddf5fb71
......@@ -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);
......
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