Commit 9a185500 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlc_media_player_retain: missing lock

parent 9b9051c4
......@@ -473,10 +473,11 @@ void libvlc_media_player_release( libvlc_media_player_t *p_mi )
**************************************************************************/
void libvlc_media_player_retain( libvlc_media_player_t *p_mi )
{
if( !p_mi )
return;
assert( p_mi );
vlc_mutex_lock( &p_mi->object_lock );
p_mi->i_refcount++;
vlc_mutex_unlock( &p_mi->object_lock );
}
/**************************************************************************
......
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