[vlc-commits] chromecast: Fix commands potentially not being sent

Hugo Beauzée-Luyssen git at videolan.org
Fri Dec 15 16:58:26 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Dec 15 16:57:54 2017 +0100| [bd41cc301055802e3d6c041b6cf239ad3a448e69] | committer: Hugo Beauzée-Luyssen

chromecast: Fix commands potentially not being sent

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

 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 fc213135bb..4531a72032 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -229,6 +229,9 @@ void intf_sys_t::mainLoop()
     {
         if ( !handleMessages() )
             break;
+        // Reset the interrupt state to avoid commands not being sent (since
+        // the context is still flagged as interrupted)
+        vlc_interrupt_unregister();
         vlc_mutex_locker lock( &m_lock );
         while ( m_msgQueue.empty() == false )
         {



More information about the vlc-commits mailing list