From 434bd4b5b5216440dc6e1fbca4db9fb6374f002d Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robUx4@videolabs.io>
Date: Wed, 23 Dec 2015 12:58:31 +0100
Subject: [PATCH] chromecast: move buildMessage() in the class

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
---
 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 44e6dbad0c48..fe1656d0fb8a 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 9885ad015793..d7751736ab48 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;
 
-- 
GitLab