[vlc-devel] [PATCH 23/33] chromecast: use a reference to the received namespace

Steve Lhomme robux4 at videolabs.io
Wed Dec 23 12:58:42 CET 2015


---
 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 2eddff5..62a94e3 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -220,7 +220,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)
     {
-- 
2.6.3



More information about the vlc-devel mailing list