diff options
Diffstat (limited to 'cast/standalone_sender/looping_file_cast_agent.cc')
-rw-r--r-- | cast/standalone_sender/looping_file_cast_agent.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cast/standalone_sender/looping_file_cast_agent.cc b/cast/standalone_sender/looping_file_cast_agent.cc index 70d489de..ce9826de 100644 --- a/cast/standalone_sender/looping_file_cast_agent.cc +++ b/cast/standalone_sender/looping_file_cast_agent.cc @@ -291,8 +291,8 @@ void LoopingFileCastAgent::OnNegotiated( } file_sender_ = std::make_unique<LoopingFileSender>( - environment_.get(), connection_settings_->path_to_file.c_str(), session, - std::move(senders), connection_settings_->max_bitrate); + environment_.get(), connection_settings_.value(), session, + std::move(senders), [this]() { shutdown_callback_(); }); } void LoopingFileCastAgent::OnRemotingNegotiated( @@ -307,8 +307,8 @@ void LoopingFileCastAgent::OnRemotingNegotiated( } file_sender_ = std::make_unique<LoopingFileSender>( - environment_.get(), connection_settings_->path_to_file.c_str(), session, - std::move(negotiation.senders), connection_settings_->max_bitrate); + environment_.get(), connection_settings_.value(), session, + std::move(negotiation.senders), [this]() { shutdown_callback_(); }); } void LoopingFileCastAgent::OnError(const SenderSession* session, Error error) { |