[vlc-commits] chromecast: don't ignore messages with a sessionId of 0

Thomas Guillem git at videolan.org
Thu Mar 29 14:04:19 CEST 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Mar 29 13:58:41 2018 +0200| [0375b6d965fcfa0c2c7c574d466366aeff5de364] | committer: Thomas Guillem

chromecast: don't ignore messages with a sessionId of 0

This fixes the FINISHED message sometimes not handled.

(cherry picked from commit f5d3bcf344e1ffce26fed9d0ba1021ed074c5a04)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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 184e516e39..2b47268e1c 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -801,7 +801,7 @@ void intf_sys_t::processMediaMessage( const castchannel::CastMessage& msg )
                 status[0]["playerState"].operator const char *(),
                 sessionId );
 
-        if ((m_mediaSessionId != sessionId && m_mediaSessionId != 0))
+        if (sessionId != 0 && m_mediaSessionId != 0 && m_mediaSessionId != sessionId)
         {
             msg_Warn( m_module, "Ignoring message for a different media session");
             json_value_free(p_data);



More information about the vlc-commits mailing list