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

upload video files

上级 3f205f80
...@@ -616,6 +616,13 @@ protected: ...@@ -616,6 +616,13 @@ protected:
auto self = static_cast<EvSlicer*>(pUserData); auto self = static_cast<EvSlicer*>(pUserData);
for(auto &i : evts) { for(auto &i : evts) {
string fullPath = i.get_path();
string ext = ".mp4";
size_t pos = fullPath.find(ext, 0);
if(fullPath.size() < ext.size() || pos == string::npos || pos != (fullPath.size() - ext.size())){
spdlog::debug("evslicer {} invalid file : {}", self->selfId, fullPath);
continue;
}
if(lastFile == i.get_path()) { if(lastFile == i.get_path()) {
// skip // skip
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论