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

Thomas Guillem git at videolan.org
Tue Feb 6 18:37:03 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb  6 18:16:51 2018 +0100| [e991434a9f5d607b90e65293267940190612a3bd] | committer: Thomas Guillem

chromecast: don't try to get MEDIA_STATUS when Dead

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

 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