[vlc-commits] chromecast_ctrl: fix deadlock introduced in e8d7355d0dcd9cd12937900d3ca6b6e2d2d40e71

Steve Lhomme git at videolan.org
Thu Dec 24 09:32:29 CET 2015


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Dec 23 21:49:58 2015 +0100| [dcfa9180984e17881930a311d531bc69621717cd] | committer: Hugo Beauzée-Luyssen

chromecast_ctrl: fix deadlock introduced in e8d7355d0dcd9cd12937900d3ca6b6e2d2d40e71

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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")



More information about the vlc-commits mailing list