Commit 16e8aa323f7faf7e62035d2d01ac618bba096d81

Authored by 648540858
1 parent 1f39c6c6

修复回放失败出现脏数据的问题以及添加拉流代理判断错误的问题

src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
... ... @@ -314,6 +314,7 @@ public class PlayServiceImpl implements IPlayService {
314 314 }, event -> {
315 315 msg.setData(String.format("回放失败, 错误码: %s, %s", event.statusCode, event.msg));
316 316 callback.call(msg);
  317 + streamSession.remove(device.getDeviceId(), channelId, ssrcInfo.getStream());
317 318 });
318 319 return result;
319 320 }
... ...
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java
... ... @@ -716,7 +716,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
716 716 try {
717 717 if (streamProxyMapper.add(streamProxyItem) > 0) {
718 718 if (!StringUtils.isEmpty(streamProxyItem.getGbId())) {
719   - if (gbStreamMapper.add(streamProxyItem) > 0) {
  719 + if (gbStreamMapper.add(streamProxyItem) <= 0) {
720 720 //事务回滚
721 721 dataSourceTransactionManager.rollback(transactionStatus);
722 722 return false;
... ...