From aa2fd38faf65ab715cf18090e792088c239ee184 Mon Sep 17 00:00:00 2001 From: Kennan Gumbs Date: Mon, 28 Jun 2021 19:31:30 +0000 Subject: 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 Reviewed-by: Jordan Bayles --- cast/standalone_sender/main.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cast') 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}); -- cgit v1.2.3