Skip to content

Commit

Permalink
Fixed an issue where query strings included in the stream name were n…
Browse files Browse the repository at this point in the history
…ot handled
  • Loading branch information
dimiden committed Dec 17, 2024
1 parent 9b4ed20 commit 5cb21a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/projects/providers/rtmp/rtmp_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ namespace pvd
}

auto stream_name = document.GetProperty(3)->GetString();
auto query_position = stream_name.IndexOf('?');
if (query_position >= 0)
{
url->AppendQueryString(stream_name.Substring(query_position));
stream_name = stream_name.Substring(0, query_position);
}

if (stream_name.IsEmpty() == false)
{
Expand Down

0 comments on commit 5cb21a3

Please sign in to comment.