From f443548c32fb10aba1fd7fdd652c0a936497d1c7 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:20:59 +0100 Subject: [PATCH] srt: fix compatibility with Blackmagic Design hardware (#3701) --- internal/servers/srt/streamid.go | 3 --- internal/servers/srt/streamid_test.go | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) 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