Commit 1cf7db9a authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf

chromecast: don't try to get MEDIA_STATUS when Dead

(cherry picked from commit e991434a)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8afa7832
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment