[vlc-commits] chromecast: Fix invalid assomption about the receiver state

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 16 17:19:18 CET 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Jan 15 16:39:05 2018 +0100| [13fc52fdf4a4763b2db529f48f3733c60cb27455] | committer: Hugo Beauzée-Luyssen

chromecast: Fix invalid assomption about the receiver state

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

 modules/stream_out/chromecast/chromecast_ctrl.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 311259bd26..e98c454632 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -163,7 +163,7 @@ void intf_sys_t::setHasInput( const std::string mime_type )
         return;
     }
     // We should now be in the ready state, and therefor have a valid transportId
-    assert( m_state == Ready && m_appTransportId.empty() == false );
+    assert( m_appTransportId.empty() == false );
     // we cannot start a new load when the last one is still processing
     m_communication.msgPlayerLoad( m_appTransportId, m_streaming_port, m_title, m_artwork, mime_type );
     setState( Loading );
@@ -654,7 +654,7 @@ void intf_sys_t::setPauseState(bool paused)
 
 void intf_sys_t::waitAppStarted()
 {
-    while ( m_state != Ready && m_state != Dead )
+    while ( m_state == Connected || m_state == Launching )
     {
         if ( m_state == Connected )
         {



More information about the vlc-commits mailing list