mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-25 22:47:49 +08:00
修复空指针异常
This commit is contained in:
parent
daa8e8358c
commit
374548ab6e
@ -342,7 +342,9 @@ public class PlayServiceImpl implements IPlayService {
|
|||||||
MediaServer mediaInfo = streamInfo.getMediaServer();
|
MediaServer mediaInfo = streamInfo.getMediaServer();
|
||||||
Boolean ready = mediaServerService.isStreamReady(mediaInfo, "rtp", streamId);
|
Boolean ready = mediaServerService.isStreamReady(mediaInfo, "rtp", streamId);
|
||||||
if (ready != null && ready) {
|
if (ready != null && ready) {
|
||||||
callback.run(InviteErrorCode.SUCCESS.getCode(), InviteErrorCode.SUCCESS.getMsg(), streamInfo);
|
if(callback != null) {
|
||||||
|
callback.run(InviteErrorCode.SUCCESS.getCode(), InviteErrorCode.SUCCESS.getMsg(), streamInfo);
|
||||||
|
}
|
||||||
inviteStreamService.call(InviteSessionType.PLAY, channel.getId(), null,
|
inviteStreamService.call(InviteSessionType.PLAY, channel.getId(), null,
|
||||||
InviteErrorCode.SUCCESS.getCode(),
|
InviteErrorCode.SUCCESS.getCode(),
|
||||||
InviteErrorCode.SUCCESS.getMsg(),
|
InviteErrorCode.SUCCESS.getMsg(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user