[vlc-commits] chromecast: no need to share some constants anymore

Steve Lhomme git at videolan.org
Wed Dec 23 20:28:25 CET 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 23 12:58:36 2015 +0100| [bb2704f3c68e4e7a359f426b7c2db8e0abbd7f77] | committer: Jean-Baptiste Kempf

chromecast: no need to share some constants anymore

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index 7d88acf..4db1f99 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -42,10 +42,6 @@
 
 // Media player Chromecast app id
 static const std::string DEFAULT_CHOMECAST_RECEIVER = "receiver-0";
-static const std::string NAMESPACE_DEVICEAUTH       = "urn:x-cast:com.google.cast.tp.deviceauth";
-static const std::string NAMESPACE_CONNECTION       = "urn:x-cast:com.google.cast.tp.connection";
-static const std::string NAMESPACE_HEARTBEAT        = "urn:x-cast:com.google.cast.tp.heartbeat";
-static const std::string NAMESPACE_RECEIVER         = "urn:x-cast:com.google.cast.receiver";
 /* see https://developers.google.com/cast/docs/reference/messages */
 static const std::string NAMESPACE_MEDIA            = "urn:x-cast:com.google.cast.media";
 
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 24640ea..d29c1f9 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -43,6 +43,11 @@
 
 #define SOUT_CFG_PREFIX "sout-chromecast-"
 
+static const std::string NAMESPACE_DEVICEAUTH       = "urn:x-cast:com.google.cast.tp.deviceauth";
+static const std::string NAMESPACE_CONNECTION       = "urn:x-cast:com.google.cast.tp.connection";
+static const std::string NAMESPACE_HEARTBEAT        = "urn:x-cast:com.google.cast.tp.heartbeat";
+static const std::string NAMESPACE_RECEIVER         = "urn:x-cast:com.google.cast.receiver";
+
 /**
  * @brief Build a CastMessage to send to the Chromecast
  * @param namespace_ the message namespace



More information about the vlc-commits mailing list