ffmpeg 失败时对外抛出异常

This commit is contained in:
shikong 2024-01-23 15:22:12 +08:00
parent 3037c315a3
commit b12b10665a

View File

@ -575,11 +575,13 @@ public class DeviceProxyService {
mediaStatus(); mediaStatus();
} }
@SneakyThrows
@Override @Override
public void onProcessFailed(ExecuteException e) { public void onProcessFailed(ExecuteException e) {
hasResult = true; hasResult = true;
log.error("ffmpeg 执行失败", e); log.error("ffmpeg 执行失败", e);
close(); close();
throw e;
} }
} }