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

chromecast: move buildMessage() in the class

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

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

 modules/stream_out/chromecast/chromecast.h        |    4 ++++
 modules/stream_out/chromecast/chromecast_ctrl.cpp |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast.h 
b/modules/stream_out/chromecast/chromecast.h
index 44e6dba..fe1656d 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -114,6 +114,10 @@ struct intf_sys_t
 private:
     int sendMessage(castchannel::CastMessage &msg);
 
+    castchannel::CastMessage buildMessage(std::string namespace_,
+                                         castchannel::CastMessage_PayloadType 
payloadType,
+                                         std::string payload, std::string 
destinationId = DEFAULT_CHOMECAST_RECEIVER);
+
     enum connection_status conn_status;
 
     unsigned i_requestId;
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp 
b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 9885ad0..d775173 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -52,9 +52,9 @@
  * @param destinationId the destination idenifier
  * @return the generated CastMessage
  */
-static castchannel::CastMessage buildMessage(std::string namespace_,
-                                castchannel::CastMessage_PayloadType 
payloadType,
-                                std::string payload, std::string destinationId 
= DEFAULT_CHOMECAST_RECEIVER)
+castchannel::CastMessage intf_sys_t::buildMessage(std::string namespace_,
+                                                 
castchannel::CastMessage_PayloadType payloadType,
+                                                 std::string payload, 
std::string destinationId)
 {
     castchannel::CastMessage msg;
 

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

Reply via email to