server: fix SETUP in case of no track ID and query parameters (#623)

This commit is contained in:
Alessandro Ros
2024-09-15 23:24:34 +02:00
committed by GitHub
parent 28f91637d4
commit 6ed93de46c
2 changed files with 15 additions and 0 deletions

View File

@@ -198,6 +198,18 @@ func TestServerPlayPath(t *testing.T) {
"rtsp://localhost:8554/teststream/",
"/teststream",
},
{
"without media id, query, ffmpeg",
"rtsp://localhost:8554/teststream?testing=123/",
"rtsp://localhost:8554/teststream/",
"/teststream",
},
{
"without media id, query, gstreamer",
"rtsp://localhost:8554/teststream/?testing=123",
"rtsp://localhost:8554/teststream/",
"/teststream",
},
{
"subpath",
"rtsp://localhost:8554/test/stream[control]",