修复定时删除过期录像文件时,收藏文件被删除的问题

This commit is contained in:
648540858
2023-11-21 14:30:33 +08:00
parent c1bc45fe8f
commit c98ef23b98
3 changed files with 7 additions and 4 deletions

View File

@@ -133,6 +133,9 @@ public class StreamProxyServiceImpl implements IStreamProxyService {
JSONArray dataArray = jsonObject.getJSONArray("data");
JSONObject mediaServerConfig = dataArray.getJSONObject(0);
String ffmpegCmd = mediaServerConfig.getString(param.getFfmpegCmdKey());
if (ffmpegCmd == null) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "ffmpeg拉流代理无法获取ffmpeg cmd");
}
String schema = getSchemaFromFFmpegCmd(ffmpegCmd);
if (schema == null) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "ffmpeg拉流代理无法从ffmpeg cmd中获取到输出格式");