[vlc-devel] [PATCH 29/33] chromecast: use vlc_mutex_locker
Steve Lhomme
robux4 at videolabs.io
Wed Dec 23 12:58:48 CET 2015
---
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 d8a759a..fc85de5 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -384,9 +384,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
{
--
2.6.3
More information about the vlc-devel
mailing list