[vlc-devel] [PATCH 06/33] chromecast: pass the destination namespace by reference
Steve Lhomme
robux4 at videolabs.io
Wed Dec 23 12:58:25 CET 2015
---
modules/stream_out/chromecast/chromecast.h | 2 +-
modules/stream_out/chromecast/chromecast_ctrl.cpp | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index b496106..fa01fa5 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -70,7 +70,7 @@ struct intf_sys_t
void msgReceiverClose(std::string destinationId);
void msgPing();
void msgPong();
- void msgConnect(std::string destinationId);
+ void msgConnect(const std::string & destinationId = DEFAULT_CHOMECAST_RECEIVER);
void msgReceiverLaunchApp();
void msgReceiverGetStatus();
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 76eecad..3e45cbb 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -115,8 +115,7 @@ void intf_sys_t::msgPong()
messagesToSend.push(msg);
}
-
-void intf_sys_t::msgConnect(std::string destinationId)
+void intf_sys_t::msgConnect(const std::string & destinationId)
{
std::string s("{\"type\":\"CONNECT\"}");
castchannel::CastMessage msg = buildMessage(NAMESPACE_CONNECTION,
--
2.6.3
More information about the vlc-devel
mailing list