srt: fix compatibility with StreamToStudio app (#5414) (#5928)

This commit is contained in:
Alessandro Ros
2026-07-18 17:59:05 +02:00
committed by GitHub
parent 96aeb1e603
commit d6e765976c
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -67,6 +67,8 @@ func (s *streamID) unmarshal(raw string) error {
"query is an optional token containing additional information")
}
parts[len(parts)-1] = strings.TrimSuffix(parts[len(parts)-1], "#feedbackplay")
switch parts[0] {
case "read":
s.mode = streamIDModeRead
+10
View File
@@ -58,6 +58,16 @@ func TestStreamIDUnmarshal(t *testing.T) {
path: "test3",
},
},
{
"issue 5414",
"publish:my_path:myuser:mypass#feedbackplay",
streamID{
mode: streamIDModePublish,
path: "my_path",
user: "myuser",
pass: "mypass",
},
},
} {
t.Run(ca.name, func(t *testing.T) {
var sid streamID