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

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


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

chromecast: Fix commands potentially not being sent

(cherry picked from commit bd41cc301055802e3d6c041b6cf239ad3a448e69)
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=ce84a3b384b50b790fb9592b044f47117a89e204
---

 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