vlc | branch: master | Steve Lhomme <[email protected]> | Wed Dec 23 12:58:25 
2015 +0100| [efe32935322fd380fde17551bf719b4f9c68155e] | committer: 
Jean-Baptiste Kempf

chromecast: pass the destination namespace by reference

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=efe32935322fd380fde17551bf719b4f9c68155e
---

 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 1c4dd35..02a8706 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,

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to