Commit 8c4ebcd8 authored by Thomas Guillem's avatar Thomas Guillem

chromecast: add missing lock when closing

parent ea00c618
......@@ -133,6 +133,7 @@ intf_sys_t::~intf_sys_t()
{
var_Destroy( m_module->obj.parent->obj.parent, CC_SHARED_VAR_NAME );
vlc_mutex_lock(&m_lock);
switch ( m_state )
{
case Ready:
......@@ -153,6 +154,7 @@ intf_sys_t::~intf_sys_t()
default:
break;
}
vlc_mutex_unlock(&m_lock);
vlc_interrupt_kill( m_ctl_thread_interrupt );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment