From 7732a1d180f04ea8e3cd569a73a9288bca5626e9 Mon Sep 17 00:00:00 2001
From: wendy512 <wendy512@yeah.net>
Date: 星期四, 18 七月 2024 13:40:47 +0800
Subject: [PATCH] 解决国标视频回放判断streamMode时空指针异常问题

---
 src/main/java/com/genersoft/iot/vmp/gb28181/conf/DefaultProperties.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/conf/DefaultProperties.java b/src/main/java/com/genersoft/iot/vmp/gb28181/conf/DefaultProperties.java
old mode 100644
new mode 100755
index ac2f547..e2c9ef5
--- a/src/main/java/com/genersoft/iot/vmp/gb28181/conf/DefaultProperties.java
+++ b/src/main/java/com/genersoft/iot/vmp/gb28181/conf/DefaultProperties.java
@@ -12,9 +12,9 @@
  */
 public class DefaultProperties {
 
-    public static Properties getProperties(boolean sipLog) {
+    public static Properties getProperties(String name, boolean sipLog) {
         Properties properties = new Properties();
-        properties.setProperty("javax.sip.STACK_NAME", "GB28181_SIP");
+        properties.setProperty("javax.sip.STACK_NAME", name);
 //        properties.setProperty("javax.sip.IP_ADDRESS", ip);
         // 鍏抽棴鑷姩浼氳瘽
         properties.setProperty("javax.sip.AUTOMATIC_DIALOG_SUPPORT", "off");

--
Gitblit v1.8.0