Commit bd3dbe03 authored by Laurent Aimar's avatar Laurent Aimar

Added a missing lock around attachments.

parent f5a95b3b
......@@ -1341,12 +1341,14 @@ static void End( input_thread_t * p_input )
#undef CL_CO
}
vlc_mutex_lock( &p_input->p->p_item->lock );
if( p_input->p->i_attachment > 0 )
{
for( i = 0; i < p_input->p->i_attachment; i++ )
vlc_input_attachment_Delete( p_input->p->attachment[i] );
TAB_CLEAN( p_input->p->i_attachment, p_input->p->attachment );
}
vlc_mutex_unlock( &p_input->p->p_item->lock );
/* */
input_resource_RequestSout( p_input->p->p_resource,
......
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