Skip to content

Commit e63891f

Browse files
committed
[magewell-encode-sdi] fix enable output when added
1 parent 8d5cd47 commit e63891f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/modules/magewell-encode-sdi/container/services/device-save.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ module.exports = async () => {
180180

181181
if (previousServer === undefined) {
182182
await updateClient("add-server", nextPayload);
183+
if (streamServer?.["is-use"] === 1) {
184+
await updateClient("enable-server", {
185+
id: streamServer.id,
186+
"is-use": streamServer["is-use"],
187+
});
188+
}
183189
continue;
184190
}
185191

src/modules/magewell-encode-sdi/container/services/output-add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function buildDefaultOutput(nextId) {
88
id: nextId,
99
type: 133,
1010
name: `output-${nextId + 1}`,
11-
"is-use": 1,
11+
"is-use": 0,
1212
url: "192.168.100.1",
1313
port: 5001 + nextId,
1414
"net-mode": 1,

0 commit comments

Comments
 (0)