提交 16ff5466 编写于 作者: S Steven Liu 提交者: Michael Niedermayer

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: Nyinyunjiang <yinyunjiang1991@qq.com>
Signed-off-by: NSteven Liu <lq@chinaffmpeg.org>
Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 3d8a8fd2
......@@ -208,7 +208,7 @@ static int rtmp_http_open(URLContext *h, const char *uri, int flags)
}
/* 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;
/* set options */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册