vlc | branch: master | Steve Lhomme <[email protected]> | Wed Dec 23 12:58:35 
2015 +0100| [84aa4167d97c838660ff3cebb46963abc2b184aa] | committer: 
Jean-Baptiste Kempf

chromecast: simplify the auth payload sending

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp 
b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 76ae491..24640ea 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -259,11 +259,9 @@ void intf_sys_t::msgAuth()
 {
     castchannel::DeviceAuthMessage authMessage;
     authMessage.mutable_challenge();
-    std::string authMessageString;
-    authMessage.SerializeToString(&authMessageString);
 
-    buildMessage(NAMESPACE_DEVICEAUTH,
-        authMessageString, DEFAULT_CHOMECAST_RECEIVER, 
castchannel::CastMessage_PayloadType_BINARY);
+    buildMessage(NAMESPACE_DEVICEAUTH, authMessage.SerializeAsString(),
+                 DEFAULT_CHOMECAST_RECEIVER, 
castchannel::CastMessage_PayloadType_BINARY);
 }
 
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to