修复国标级联播放拉流代理空指针异常

pull/1773/head
lin 2025-02-19 14:09:51 +08:00
parent 3b714f8e2c
commit 4a41de6039
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class StreamProxyPlayServiceImpl implements IStreamProxyPlayService {
streamProxy.setEnableMp4(record); streamProxy.setEnableMp4(record);
} }
StreamInfo streamInfo = startProxy(streamProxy); StreamInfo streamInfo = startProxy(streamProxy);
if (streamInfo != null) { if (streamInfo != null && callback != null) {
callback.run(ErrorCode.SUCCESS.getCode(), ErrorCode.SUCCESS.getMsg(), streamInfo); callback.run(ErrorCode.SUCCESS.getCode(), ErrorCode.SUCCESS.getMsg(), streamInfo);
} }
return streamInfo; return streamInfo;