aboutsummaryrefslogtreecommitdiff
path: root/cast
diff options
context:
space:
mode:
authorKennan Gumbs <kennangumbs@google.com>2021-06-28 19:31:30 +0000
committerOpenscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-06-28 20:15:59 +0000
commitaa2fd38faf65ab715cf18090e792088c239ee184 (patch)
tree41b71ecbdb5f41384fd86f9858e9ca680569a929 /cast
parent5ab621ccbccf6b13789a66d12a487283a7c3525f (diff)
downloadopenscreen-aa2fd38faf65ab715cf18090e792088c239ee184.tar.gz
Fix compile error due to initialization issue
Currently the standalone sender does not build due to how a class is set up. This patch fixes it by changing the class initialization. Change-Id: Icf7845179b019330d87f5f9b568cc8e746ebe072 Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2993319 Commit-Queue: Jordan Bayles <jophba@chromium.org> Reviewed-by: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast')
-rw-r--r--cast/standalone_sender/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cast/standalone_sender/main.cc b/cast/standalone_sender/main.cc
index 27ff3287..dd606c00 100644
--- a/cast/standalone_sender/main.cc
+++ b/cast/standalone_sender/main.cc
@@ -212,7 +212,10 @@ int StandaloneSenderMain(int argc, char* argv[]) {
task_runner->PostTask([&] {
cast_agent = new LoopingFileCastAgent(
task_runner, [&] { task_runner->RequestStopSoon(); });
- cast_agent->Connect({remote_endpoint, path, max_bitrate,
+
+ cast_agent->Connect({.receiver_endpoint = remote_endpoint,
+ .path_to_file = path,
+ .max_bitrate = max_bitrate,
.should_include_video = true,
.use_android_rtp_hack = use_android_rtp_hack,
.use_remoting = use_remoting});