Commit c8f9f19c38832f030c5bde5c79ccd8485590d309
1 parent
4a0fd9ea
#393
Showing
3 changed files
with
3 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/SIPRequestHeaderProvider.java
| ... | ... | @@ -230,6 +230,7 @@ public class SIPRequestHeaderProvider { |
| 230 | 230 | Request request = null; |
| 231 | 231 | if (streamInfo == null) return null; |
| 232 | 232 | Dialog dialog = streamSession.getDialogByStream(streamInfo.getDeviceID(), streamInfo.getChannelId(), streamInfo.getStream()); |
| 233 | + if (dialog == null) return null; | |
| 233 | 234 | |
| 234 | 235 | SipURI requestLine = sipFactory.createAddressFactory().createSipURI(device.getDeviceId(), |
| 235 | 236 | device.getHostAddress()); | ... | ... |
src/main/java/com/genersoft/iot/vmp/storager/dao/GbStreamMapper.java
| ... | ... | @@ -33,7 +33,7 @@ public interface GbStreamMapper { |
| 33 | 33 | "mediaServerId=#{mediaServerId}," + |
| 34 | 34 | "status=${status} " + |
| 35 | 35 | "WHERE app=#{app} AND stream=#{stream}") |
| 36 | - int updateByallAndStream(GbStream gbStream); | |
| 36 | + int updateByAppAndStream(GbStream gbStream); | |
| 37 | 37 | |
| 38 | 38 | @Update("UPDATE gb_stream " + |
| 39 | 39 | "SET app=#{app}," + | ... | ... |
src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java
| ... | ... | @@ -772,7 +772,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { |
| 772 | 772 | try { |
| 773 | 773 | if (streamProxyMapper.update(streamProxyItem) > 0) { |
| 774 | 774 | if (!StringUtils.isEmpty(streamProxyItem.getGbId())) { |
| 775 | - if (gbStreamMapper.updateByallAndStream(streamProxyItem) > 0) { | |
| 775 | + if (gbStreamMapper.updateByAppAndStream(streamProxyItem) == 0) { | |
| 776 | 776 | //事务回滚 |
| 777 | 777 | dataSourceTransactionManager.rollback(transactionStatus); |
| 778 | 778 | return false; | ... | ... |