Skip to content

Commit

Permalink
srt: fix compatibility with Blackmagic Design hardware (#3701) (#4087)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Jan 2, 2025
1 parent d38b7e9 commit 6425bd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/servers/srt/streamid.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ func (s *streamID) unmarshal(raw string) error {
default:
return fmt.Errorf("unsupported mode '%s'", value)
}

default:
return fmt.Errorf("unsupported key '%s'", key)
}
}
} else {
Expand Down
8 changes: 8 additions & 0 deletions internal/servers/srt/streamid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ func TestStreamIDUnmarshal(t *testing.T) {
pass: "mypass",
},
},
{
"issue 3701",
"#!::bmd_uuid=0e1df79f-77e6-465c-b099-29a616e964f7,bmd_name=rdt-wp-003,r=test3,m=publish",
streamID{
mode: streamIDModePublish,
path: "test3",
},
},
} {
t.Run(ca.name, func(t *testing.T) {
var sid streamID
Expand Down

0 comments on commit 6425bd5

Please sign in to comment.