提交 72281fe6 authored 作者: blu's avatar blu

init

上级 8a8fcbf5
......@@ -164,12 +164,13 @@ private:
// close req
{
zmq_msg_close(&msg);
if(pReq != NULL) {
zmq_close(pSub);
zmq_close(pReq);
pReq = NULL;
}
if(pReqCtx != NULL) {
zmq_ctx_destroy(pSub);
zmq_ctx_destroy(pReqCtx);
pReqCtx = NULL;
}
}
......@@ -238,6 +239,7 @@ private:
if (ret < 0) {
spdlog::error("evpusher {} {} error occurred when opening output file", sn, iid);
}
return ret;
}
protected:
......@@ -323,6 +325,12 @@ public:
~PacketPusher()
{
teardownMq();
// free avformatcontex
if(pAVFormatInput != NULL) {
AVFormatCtxSerializer::freeCtx(pAVFormatInput);
pAVFormatInput = NULL;
}
}
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论