提交 a45d71b5 authored 作者: blu's avatar blu

bugfix: evpuller broadcast empty avformatctx

上级 b33706cc
......@@ -334,9 +334,6 @@ protected:
spdlog::error("evpuller {} failed create avformatcontext for output: {}", selfId, av_err2str(AVERROR(ENOMEM)));
}
// broadcast
sendAVInputCtxMsg("");
// serialize formatctx to bytes
// be attention to the scope of lock guard!
{
......@@ -346,6 +343,8 @@ protected:
spdlog::error("evpuller {} failed to pull packet from {}. exiting...", selfId, urlIn);
exit(1);
}
// broadcast
sendAVInputCtxMsg("");
gotFormat = true;
cvMsg.notify_one();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论