Commit 6f1095eb authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* destroy some mutex'es once in a while to prevent memleaks. Suggested by a...

* destroy some mutex'es once in a while to prevent memleaks. Suggested by a forumuser, name pending. 
parent 19bd050a
......@@ -135,6 +135,7 @@ static void Close( vlc_object_t *p_this )
{
vlc_object_release( p_intf->p_sys->p_vout );
}
vlc_mutex_destroy( &p_intf->p_sys->change_lock );
/* Destroy structure */
free( p_intf->p_sys );
}
......
......@@ -859,7 +859,7 @@ static int Init( input_thread_t * p_input )
if( p_input->i_start > 0 )
{
if( p_input->i_start >= val.i_time )
if( p_input->i_start >= p_input->input.p_item->i_duration )
{
msg_Warn( p_input, "invalid start-time ignored" );
}
......@@ -1184,6 +1184,7 @@ static void End( input_thread_t * p_input )
CL_CO( decoded_audio) ;
CL_CO( decoded_video );
CL_CO( decoded_sub) ;
vlc_mutex_destroy( &p_input->counters.counters_lock );
}
/* Close optional stream output instance */
......
......@@ -1109,6 +1109,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
/* Destroy mutexes */
vlc_mutex_destroy( &p_libvlc->config_lock );
vlc_mutex_destroy( &p_libvlc->timer_lock );
if( b_release ) vlc_object_release( p_libvlc );
vlc_object_destroy( p_libvlc );
......
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