[vlc-commits] chromecast: use a reference to the received namespace

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


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

chromecast: use a reference to the received namespace

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

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index a41cf8d..b2d5df5 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -223,7 +223,7 @@ extern "C" int recvPacket(sout_stream_t *p_stream, bool &b_msgReceived,
  */
 void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
 {
-    std::string namespace_ = msg.namespace_();
+    const std::string & namespace_ = msg.namespace_();
 
     if (namespace_ == NAMESPACE_DEVICEAUTH)
     {



More information about the vlc-commits mailing list