diff mbox

[FFmpeg-devel] fix infinite retry issue for rtsp when the uri has redirection

Message ID CA+fTBofQCSeb4nYZ0SBv0nSXExodgZeBcTs3qRgfROT1MvL7og@mail.gmail.com
State New
Headers show

Commit Message

tianhu yang Dec. 14, 2018, 12:19 a.m. UTC
---
 libavformat/rtsp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Lou Logan Dec. 14, 2018, 7:06 p.m. UTC | #1
On Thu, Dec 13, 2018, at 3:19 PM, tianhu yang wrote:
> ---
>  libavformat/rtsp.c | 1 +
>  1 file changed, 1 insertion(+)

Thank you for the patch, but it does not apply. Please create patches with "git format-patch" or "git send-email", and provide a commit message.
diff mbox

Patch

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ceb770a3a4..6093424431 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1920,6 +1920,7 @@  redirect:
         }
         ff_format_set_url(s, new_url);
         rt->session_id[0] = '\0';
         av_log(s, AV_LOG_INFO, "Status %d: Redirecting to %s\n",
                reply->status_code,
                s->url);
+ .     reply->status_code = 0;