Commit efe32935 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

chromecast: pass the destination namespace by reference

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4921e9a2
...@@ -70,7 +70,7 @@ struct intf_sys_t ...@@ -70,7 +70,7 @@ struct intf_sys_t
void msgReceiverClose(std::string destinationId); void msgReceiverClose(std::string destinationId);
void msgPing(); void msgPing();
void msgPong(); void msgPong();
void msgConnect(std::string destinationId); void msgConnect(const std::string & destinationId = DEFAULT_CHOMECAST_RECEIVER);
void msgReceiverLaunchApp(); void msgReceiverLaunchApp();
void msgReceiverGetStatus(); void msgReceiverGetStatus();
......
...@@ -115,8 +115,7 @@ void intf_sys_t::msgPong() ...@@ -115,8 +115,7 @@ void intf_sys_t::msgPong()
messagesToSend.push(msg); messagesToSend.push(msg);
} }
void intf_sys_t::msgConnect(const std::string & destinationId)
void intf_sys_t::msgConnect(std::string destinationId)
{ {
std::string s("{\"type\":\"CONNECT\"}"); std::string s("{\"type\":\"CONNECT\"}");
castchannel::CastMessage msg = buildMessage(NAMESPACE_CONNECTION, castchannel::CastMessage msg = buildMessage(NAMESPACE_CONNECTION,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment