From 6425bd5a8eece34e9171191492f26a36ac6ab5b7 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Thu, 2 Jan 2025 12:43:37 +0100 Subject: [PATCH] srt: fix compatibility with Blackmagic Design hardware (#3701) (#4087) --- 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