Skip to content

Commit

Permalink
Fix to not fill buffer before Mux channel is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
getroot committed Dec 5, 2024
1 parent 66d61e9 commit a57fa45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/projects/mediarouter/mediarouter_stream_tap.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ friend class MediaRouteApplication;

bool _is_destroy_requested = false;

bool _is_started = true;
bool _is_started = false;

bool _need_past_data = false;

Expand Down
3 changes: 3 additions & 0 deletions src/projects/providers/multiplex/multiplex_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ namespace pvd
_pulling_state_msg = ov::String::FormatString("Multiplex Channel : %s/%s: Wait for stream %s", GetApplicationName(), GetName().CStr(), stream_url->Stream().CStr());
logti("%s", _pulling_state_msg.CStr());

ReleaseSourceStreams();
return false;
}

Expand All @@ -207,6 +208,8 @@ namespace pvd
{
_pulling_state_msg = ov::String::FormatString("Multiplex Channel : %s/%s: Failed to mirror stream %s (err : %d)", GetApplicationName(), GetName().CStr(), source_stream->GetUrlStr().CStr(), static_cast<int>(result));
logte("%s", _pulling_state_msg.CStr());

ReleaseSourceStreams();
return false;
}
}
Expand Down

0 comments on commit a57fa45

Please sign in to comment.