Commit 1ec6c4506a278eeed7b0a663a57d78279d3cdc23
1 parent
d5806458
修复重复调用open rtp server
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| ... | ... | @@ -311,7 +311,8 @@ public class ZLMHttpHookListener { |
| 311 | 311 | if (autoApplyPlay) { |
| 312 | 312 | String app = json.getString("app"); |
| 313 | 313 | String streamId = json.getString("stream"); |
| 314 | - if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1) { | |
| 314 | + StreamInfo streamInfo = storager.queryPlayByStreamId(streamId); | |
| 315 | + if ("rtp".equals(app) && streamId.indexOf("gb_play") > -1 && streamInfo == null) { | |
| 315 | 316 | String[] s = streamId.split("_"); |
| 316 | 317 | if (s.length == 4) { |
| 317 | 318 | String deviceId = s[2]; | ... | ... |