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

This commit is contained in:
lin
2025-02-19 14:09:51 +08:00
parent 3b714f8e2c
commit 4a41de6039

View File

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