vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Mon Feb 12 13:59:28 2018 +0100| [f55e646d6afbc9c30d80d0a02b62f1f428cc388f] | committer: Thomas Guillem
chromecast: clean on error > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f55e646d6afbc9c30d80d0a02b62f1f428cc388f --- 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() _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits