[vlc-commits] chromecast: use vlc_mutex_locker
Steve Lhomme
git at videolan.org
Wed Dec 23 20:28:27 CET 2015
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Dec 23 12:58:48 2015 +0100| [82d70b6fe7f765ecec0398eaaf7a08be1c50f7be] | committer: Jean-Baptiste Kempf
chromecast: use vlc_mutex_locker
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> 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
{
More information about the vlc-commits
mailing list