瀏覽代碼

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

This reverts commit 16e8aa323f7faf7e62035d2d01ac618bba096d81.
648540858 3 年之前
父節點
當前提交
50c2a5a728

+ 0 - 1
src/main/java/com/genersoft/iot/vmp/service/impl/PlayServiceImpl.java

@@ -314,7 +314,6 @@ public class PlayServiceImpl implements IPlayService {
         }, event -> {
             msg.setData(String.format("回放失败, 错误码: %s, %s", event.statusCode, event.msg));
             callback.call(msg);
-            streamSession.remove(device.getDeviceId(), channelId, ssrcInfo.getStream());
         });
         return result;
     }

+ 1 - 1
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java

@@ -717,7 +717,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
 		try {
 			if (streamProxyMapper.add(streamProxyItem) > 0) {
 				if (!StringUtils.isEmpty(streamProxyItem.getGbId())) {
-					if (gbStreamMapper.add(streamProxyItem) <= 0) {
+					if (gbStreamMapper.add(streamProxyItem) > 0) {
 						//事务回滚
 						dataSourceTransactionManager.rollback(transactionStatus);
 						return false;