[vlc-commits] chromecast: Don't override the mediaSessionId after each received message
Hugo Beauzée-Luyssen
git at videolan.org
Thu Feb 16 09:54:12 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Feb 15 16:36:11 2017 +0100| [e4e1820ea4392571612d4177bd4770e5da91803e] | committer: Hugo Beauzée-Luyssen
chromecast: Don't override the mediaSessionId after each received message
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4e1820ea4392571612d4177bd4770e5da91803e
---
modules/stream_out/chromecast/chromecast_ctrl.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 77068ea..13b1338 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -555,11 +555,11 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
msg_Err( p_module, "snprintf() truncated string for mediaSessionId" );
session_id[sizeof(session_id) - 1] = '\0';
}
- if (!mediaSessionId.empty() && session_id[0] && mediaSessionId != session_id) {
- msg_Warn( p_module, "different mediaSessionId detected %s was %s", mediaSessionId.c_str(), this->mediaSessionId.c_str());
+ if (session_id[0] && mediaSessionId != session_id) {
+ if (!mediaSessionId.empty())
+ msg_Warn( p_module, "different mediaSessionId detected %s was %s", mediaSessionId.c_str(), this->mediaSessionId.c_str());
+ mediaSessionId = session_id;
}
-
- mediaSessionId = session_id;
}
if (receiverState != oldPlayerState)
More information about the vlc-commits
mailing list