Skip to content

Commit

Permalink
Added missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
dimiden committed Jan 21, 2025
1 parent 3c5e038 commit 47edadb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/projects/publishers/srt/srt_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ namespace pub
auto stream = application->GetStreamAs<SrtStream>(final_url->Stream());

if (stream == nullptr)
{
stream = std::dynamic_pointer_cast<SrtStream>(PullStream(final_url, vhost_app_name, final_url->Host(), final_url->Stream()));
}

if(stream == nullptr)
{
logte("Could not find stream: %s", final_url->Stream().CStr());
AddToDisconnect(remote);
Expand Down

0 comments on commit 47edadb

Please sign in to comment.