mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '2f172f1ae984b763c06069adb51d0053b3834f4b'
* commit '2f172f1ae984b763c06069adb51d0053b3834f4b': rtsp: Clear the session id on redirects Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
6441d522e9
|
@ -1816,6 +1816,7 @@ redirect:
|
||||||
ff_rtsp_close_connections(s);
|
ff_rtsp_close_connections(s);
|
||||||
if (reply->status_code >=300 && reply->status_code < 400 && s->iformat) {
|
if (reply->status_code >=300 && reply->status_code < 400 && s->iformat) {
|
||||||
av_strlcpy(s->filename, reply->location, sizeof(s->filename));
|
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",
|
av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
|
||||||
reply->status_code,
|
reply->status_code,
|
||||||
s->filename);
|
s->filename);
|
||||||
|
|
Loading…
Reference in New Issue