parent
cadd0ee038
commit
50c2a5a728
|
@ -314,7 +314,6 @@ public class PlayServiceImpl implements IPlayService {
|
||||||
}, event -> {
|
}, event -> {
|
||||||
msg.setData(String.format("回放失败, 错误码: %s, %s", event.statusCode, event.msg));
|
msg.setData(String.format("回放失败, 错误码: %s, %s", event.statusCode, event.msg));
|
||||||
callback.call(msg);
|
callback.call(msg);
|
||||||
streamSession.remove(device.getDeviceId(), channelId, ssrcInfo.getStream());
|
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -717,7 +717,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
|
||||||
try {
|
try {
|
||||||
if (streamProxyMapper.add(streamProxyItem) > 0) {
|
if (streamProxyMapper.add(streamProxyItem) > 0) {
|
||||||
if (!StringUtils.isEmpty(streamProxyItem.getGbId())) {
|
if (!StringUtils.isEmpty(streamProxyItem.getGbId())) {
|
||||||
if (gbStreamMapper.add(streamProxyItem) <= 0) {
|
if (gbStreamMapper.add(streamProxyItem) > 0) {
|
||||||
//事务回滚
|
//事务回滚
|
||||||
dataSourceTransactionManager.rollback(transactionStatus);
|
dataSourceTransactionManager.rollback(transactionStatus);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue