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

init

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