server: fix compatibility with rtspclientsink and query parameters (bluenviron/mediamtx#3295) (#619)

This commit is contained in:
Alessandro Ros
2024-09-15 22:18:23 +02:00
committed by GitHub
parent 2023bf1b00
commit c682ff53bf
2 changed files with 48 additions and 23 deletions

View File

@@ -298,13 +298,21 @@ func TestServerRecordPath(t *testing.T) {
"",
},
{
"subpath and query",
"subpath and query, ffmpeg format",
"fff=ggg",
"rtsp://localhost:8554/test/stream?testing=0",
"rtsp://localhost:8554/test/stream?testing=0/fff=ggg",
"/test/stream",
"testing=0",
},
{
"subpath and query, gstreamer format",
"fff=ggg",
"rtsp://localhost:8554/test/stream?testing=0",
"rtsp://localhost:8554/test/stream/fff=ggg?testing=0",
"/test/stream",
"testing=0",
},
{
"no path",
"streamid=1",