vlc | branch: master | Steve Lhomme <[email protected]> | Wed Dec 23 12:58:48 
2015 +0100| [82d70b6fe7f765ecec0398eaaf7a08be1c50f7be] | committer: 
Jean-Baptiste Kempf

chromecast: use vlc_mutex_locker

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

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

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp 
b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index e12100e..b94cc7e 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -387,9 +387,8 @@ void intf_sys_t::processMessage(const 
castchannel::CastMessage &msg)
         if (type == "CLOSE")
         {
             msg_Warn(p_stream, "received close message");
-            vlc_mutex_lock(&lock);
+            vlc_mutex_locker locker(&lock);
             setConnectionStatus(CHROMECAST_CONNECTION_DEAD);
-            vlc_mutex_unlock(&lock);
         }
         else
         {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to