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

files ring

上级 2a5b75c2
...@@ -322,6 +322,9 @@ error_exit: ...@@ -322,6 +322,9 @@ error_exit:
} }
} }
bProcessed = true; bProcessed = true;
}else if(jmeta["type"] == EV_MSG_META_AVFORMATCTX) {
bProcessed = true;
// ignore;
} }
}catch(exception &e) { }catch(exception &e) {
bProcessed = false; bProcessed = false;
......
...@@ -158,11 +158,11 @@ private: ...@@ -158,11 +158,11 @@ private:
pAVFormatInput = (AVFormatContext *)malloc(sizeof(AVFormatContext)); pAVFormatInput = (AVFormatContext *)malloc(sizeof(AVFormatContext));
AVFormatCtxSerializer::decode((char *)(v[2].data()), v[2].size(), pAVFormatInput); AVFormatCtxSerializer::decode((char *)(v[2].data()), v[2].size(), pAVFormatInput);
gotFormat = true; gotFormat = true;
bProcessed = true;
cvMsg.notify_one(); cvMsg.notify_one();
}else{ }else{
spdlog::warn("evmlmotion {} received avformatctx msg from {}, but already proceessed before, ignored. TODO: reinit", selfId, peerId); spdlog::warn("evmlmotion {} received avformatctx msg from {}, but already proceessed before, ignored. TODO: reinit", selfId, peerId);
} }
bProcessed = true;
} }
} }
} }
......
...@@ -260,12 +260,11 @@ private: ...@@ -260,12 +260,11 @@ private:
pAVFormatInput = (AVFormatContext *)malloc(sizeof(AVFormatContext)); pAVFormatInput = (AVFormatContext *)malloc(sizeof(AVFormatContext));
AVFormatCtxSerializer::decode((char *)(v[2].data()), v[2].size(), pAVFormatInput); AVFormatCtxSerializer::decode((char *)(v[2].data()), v[2].size(), pAVFormatInput);
gotFormat = true; gotFormat = true;
bProcessed = true;
cvMsg.notify_one(); cvMsg.notify_one();
}else{ }else{
spdlog::warn("evpusher {} received avformatctx msg from {}, but already proceessed before, ignored. TODO: reinit", selfId, peerId); spdlog::warn("evpusher {} received avformatctx msg from {}, but already proceessed before, ignored. TODO: reinit", selfId, peerId);
} }
bProcessed = true;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论