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

Thomas Guillem git at videolan.org
Thu Mar 29 13:58:56 CEST 2018


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

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

This fixes the FINISHED message sometimes not handled.

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

 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