[vlc-devel] [PATCH 12/33] chromecast: move buildMessage() in the class
Steve Lhomme
robux4 at videolabs.io
Wed Dec 23 12:58:31 CET 2015
---
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 25a7107..079d1c2 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;
--
2.6.3
More information about the vlc-devel
mailing list