aboutsummaryrefslogtreecommitdiff
path: root/cast/standalone_receiver/cast_service.cc
diff options
context:
space:
mode:
authorKennan Gumbs <kennangumbs@google.com>2021-07-07 15:54:14 -0400
committerOpenscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-07-14 01:16:32 +0000
commit7e167e2bc4c8c0c650f00b995e1e20cb1ae1f479 (patch)
tree6a84d39db2234179deaac624ec05e0d86c40ceb1 /cast/standalone_receiver/cast_service.cc
parent01c7cc260a28bc0a814249f41825b35e021be271 (diff)
downloadopenscreen-7e167e2bc4c8c0c650f00b995e1e20cb1ae1f479.tar.gz
Remove abseil dependency from HexEncode method
Currently the HexEncode method defined in util/stringprintf.h depends on absl::Span, which is part of abseil. This patch removes the dependency, allowing the method to be more widely used. Bug: b/158660166 Change-Id: I37715271391000b5c61d5a657f604db2bc6c882e Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3001949 Reviewed-by: Jordan Bayles <jophba@chromium.org> Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/standalone_receiver/cast_service.cc')
-rw-r--r--cast/standalone_receiver/cast_service.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cast/standalone_receiver/cast_service.cc b/cast/standalone_receiver/cast_service.cc
index 009190b0..0e3d9c9c 100644
--- a/cast/standalone_receiver/cast_service.cc
+++ b/cast/standalone_receiver/cast_service.cc
@@ -69,7 +69,8 @@ CastService::CastService(CastService::Configuration config)
if (discovery_publisher_) {
ReceiverInfo info;
info.port = local_endpoint_.port;
- info.unique_id = HexEncode(config.interface.hardware_address);
+ info.unique_id = HexEncode(config.interface.hardware_address.data(),
+ config.interface.hardware_address.size());
info.friendly_name = config.friendly_name;
info.model_name = config.model_name;
info.capabilities = kHasVideoOutput | kHasAudioOutput;