[vlc-devel] [PATCH] chromecast_ctrl: fix deadlock introduced in e8d7355d0dcd9cd12937900d3ca6b6e2d2d40e71

Steve Lhomme robux4 at videolabs.io
Wed Dec 23 21:49:58 CET 2015


---
 modules/stream_out/chromecast/chromecast_ctrl.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 25aea79..f0d56d8 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -411,7 +411,7 @@ void intf_sys_t::processMessage(const castchannel::CastMessage &msg)
         {
             msg_Err(p_stream, "Media load failed");
             msgReceiverClose(appTransportId);
-            vlc_mutex_lock(&lock);
+            vlc_mutex_locker locker(&lock);
             setConnectionStatus(CHROMECAST_CONNECTION_DEAD);
         }
         else if (type == "INVALID_REQUEST")
-- 
2.6.3



More information about the vlc-devel mailing list