去除多余代码

pull/1414/head
648540858 2024-04-11 16:58:56 +08:00
parent ab20f76885
commit 8750f0f3dd
1 changed files with 1 additions and 6 deletions

View File

@ -113,14 +113,9 @@ public class MediaServerServiceImpl implements IMediaServerService {
if ("rtsp".equals(event.getSchema())) {
logger.info("流变化:注销, app->{}, stream->{}", event.getApp(), event.getStream());
removeCount(event.getMediaServer().getId());
String type;
MediaInfo mediaInfo = redisCatchStorage.getStreamInfo(
event.getApp(), event.getStream(), event.getMediaServer().getId());
if (event.getApp().equals("onvif")) {
type = "onvif";
}else {
type = OriginType.values()[mediaInfo.getOriginType()].getType();
}
String type = OriginType.values()[mediaInfo.getOriginType()].getType();
redisCatchStorage.removeStream(mediaInfo.getMediaServer().getId(), type, event.getApp(), event.getStream());
}