Commit 16e8aa323f7faf7e62035d2d01ac618bba096d81
1 parent
1f39c6c6
修复回放失败出现脏数据的问题以及添加拉流代理判断错误的问题
Showing
2 changed files
with
2 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java
| @@ -314,6 +314,7 @@ public class PlayServiceImpl implements IPlayService { | @@ -314,6 +314,7 @@ public class PlayServiceImpl implements IPlayService { | ||
| 314 | }, event -> { | 314 | }, event -> { |
| 315 | msg.setData(String.format("回放失败, 错误码: %s, %s", event.statusCode, event.msg)); | 315 | msg.setData(String.format("回放失败, 错误码: %s, %s", event.statusCode, event.msg)); |
| 316 | callback.call(msg); | 316 | callback.call(msg); |
| 317 | + streamSession.remove(device.getDeviceId(), channelId, ssrcInfo.getStream()); | ||
| 317 | }); | 318 | }); |
| 318 | return result; | 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,7 +716,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { | ||
| 716 | try { | 716 | try { |
| 717 | if (streamProxyMapper.add(streamProxyItem) > 0) { | 717 | if (streamProxyMapper.add(streamProxyItem) > 0) { |
| 718 | if (!StringUtils.isEmpty(streamProxyItem.getGbId())) { | 718 | if (!StringUtils.isEmpty(streamProxyItem.getGbId())) { |
| 719 | - if (gbStreamMapper.add(streamProxyItem) > 0) { | 719 | + if (gbStreamMapper.add(streamProxyItem) <= 0) { |
| 720 | //事务回滚 | 720 | //事务回滚 |
| 721 | dataSourceTransactionManager.rollback(transactionStatus); | 721 | dataSourceTransactionManager.rollback(transactionStatus); |
| 722 | return false; | 722 | return false; |
-
mentioned in commit 50c2a5a7