[vlc-commits] chromecast: clean on error
Thomas Guillem
git at videolan.org
Fri Feb 23 08:29:21 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Feb 12 13:59:28 2018 +0100| [5f93cfafe354a371b93c381d2ae73fe0c08bce8d] | committer: Thomas Guillem
chromecast: clean on error
(cherry picked from commit f55e646d6afbc9c30d80d0a02b62f1f428cc388f)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5f93cfafe354a371b93c381d2ae73fe0c08bce8d
---
modules/stream_out/chromecast/chromecast_ctrl.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 66db9e7e83..4eb30e345b 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -138,7 +138,12 @@ intf_sys_t::intf_sys_t(vlc_object_t * const p_this, int port, std::string device
// Start the Chromecast event thread.
if (vlc_clone(&m_chromecastThread, ChromecastThread, this,
VLC_THREAD_PRIORITY_LOW))
+ {
+ vlc_cond_destroy( &m_stateChangedCond );
+ vlc_cond_destroy( &m_pace_cond );
+ var_SetAddress( m_module->obj.parent->obj.parent, CC_SHARED_VAR_NAME, NULL );
throw std::runtime_error( "error creating cc thread" );
+ }
}
intf_sys_t::~intf_sys_t()
More information about the vlc-commits
mailing list