[vlc-commits] chromecast: don't try to get MEDIA_STATUS when Dead

Thomas Guillem git at videolan.org
Tue Feb 6 19:33:21 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb  6 18:16:51 2018 +0100| [1cf7db9a62b90e8fbe7fda0efda80e9ba94a409d] | committer: Jean-Baptiste Kempf

chromecast: don't try to get MEDIA_STATUS when Dead

(cherry picked from commit e991434a9f5d607b90e65293267940190612a3bd)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index bc6975f590..d88e651e1e 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -596,6 +596,7 @@ void intf_sys_t::processReceiverMessage( const castchannel::CastMessage& msg )
         case Seeking:
         case Ready:
         case TakenOver:
+        case Dead:
             if ( p_app == NULL )
             {
                 msg_Warn( m_module, "Media receiver application got closed." );
@@ -625,6 +626,8 @@ void intf_sys_t::processReceiverMessage( const castchannel::CastMessage& msg )
         msg_Err( m_module, "Failed to start the MediaPlayer: %s",
                 (const char *)reason);
         vlc_mutex_locker locker(&m_lock);
+        m_appTransportId = "";
+        m_mediaSessionId = 0;
         setState( Dead );
     }
     else



More information about the vlc-commits mailing list