Skip to content
Snippets Groups Projects
Commit 16ff5466 authored by Steven Liu's avatar Steven Liu Committed by Michael Niedermayer
Browse files

avformat/rtmphttp: fix bug for rtmphttp


if the http server don't response the http command,
then the thread will be blocked and never be interrupted.

Reported-by: default avataryinyunjiang <yinyunjiang1991@qq.com>
Signed-off-by: default avatarSteven Liu <lq@chinaffmpeg.org>
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 3d8a8fd2
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ static int rtmp_http_open(URLContext *h, const char *uri, int flags) ...@@ -208,7 +208,7 @@ static int rtmp_http_open(URLContext *h, const char *uri, int flags)
} }
/* alloc the http context */ /* alloc the http context */
if ((ret = ffurl_alloc(&rt->stream, url, AVIO_FLAG_READ_WRITE, NULL)) < 0) if ((ret = ffurl_alloc(&rt->stream, url, AVIO_FLAG_READ_WRITE, &h->interrupt_callback)) < 0)
goto fail; goto fail;
/* set options */ /* set options */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment