mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
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@martin.st>
This commit is contained in:
parent
ddf5fb71ee
commit
2f172f1ae9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user