diff --git a/internal/servers/srt/streamid.go b/internal/servers/srt/streamid.go index fcf535e8b1d..54b949ab6cd 100644 --- a/internal/servers/srt/streamid.go +++ b/internal/servers/srt/streamid.go @@ -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 { diff --git a/internal/servers/srt/streamid_test.go b/internal/servers/srt/streamid_test.go index a1757bcb7d0..5a128be7ff0 100644 --- a/internal/servers/srt/streamid_test.go +++ b/internal/servers/srt/streamid_test.go @@ -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