[vlc-commits] chromecast: simplify the auth payload sending
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:35 2015 +0100| [84aa4167d97c838660ff3cebb46963abc2b184aa] | committer: Jean-Baptiste Kempf
chromecast: simplify the auth payload sending
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> 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);
}
More information about the vlc-commits
mailing list