提交 1cda7ff3 authored 作者: blu's avatar blu

bugfix: remove old file

上级 0c5338a4
......@@ -721,7 +721,11 @@ protected:
if(_list.size() > maxSize) {
lock_guard<mutex> lg(mutTsList);
auto ts = *(_list.begin());
_list.erase(_list.begin());
auto baseName = videoFileTs2Name(ts);
fs::path fname(this->urlOut + "/" + baseName + ".mp4");
fs::remove(fname);
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论