修复录像下载

This commit is contained in:
648540858
2024-04-09 19:53:43 +08:00
parent 7a59acc8e6
commit a1861038e5
2 changed files with 10 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ public class PlatformServiceImpl implements IPlatformService {
@EventListener
public void onApplicationEvent(MediaSendRtpStoppedEvent event) {
List<SendRtpItem> sendRtpItems = redisCatchStorage.querySendRTPServerByStream(event.getStream());
if (!sendRtpItems.isEmpty()) {
if (sendRtpItems != null && !sendRtpItems.isEmpty()) {
for (SendRtpItem sendRtpItem : sendRtpItems) {
ParentPlatform parentPlatform = platformMapper.getParentPlatByServerGBId(sendRtpItem.getPlatformId());
ssrcFactory.releaseSsrc(sendRtpItem.getMediaServerId(), sendRtpItem.getSsrc());