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

Hugo Beauzée-Luyssen git at videolan.org
Wed Jan 17 10:08:31 CET 2018


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

chromecast: Fix invalid assomption about the receiver state

(cherry picked from commit 13fc52fdf4a4763b2db529f48f3733c60cb27455)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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