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

Merge branch 1.0-bugfix

parents 44f031cb 9a185500
...@@ -413,10 +413,11 @@ void libvlc_media_player_release( libvlc_media_player_t *p_mi ) ...@@ -413,10 +413,11 @@ void libvlc_media_player_release( libvlc_media_player_t *p_mi )
**************************************************************************/ **************************************************************************/
void libvlc_media_player_retain( libvlc_media_player_t *p_mi ) void libvlc_media_player_retain( libvlc_media_player_t *p_mi )
{ {
if( !p_mi ) assert( p_mi );
return;
vlc_mutex_lock( &p_mi->object_lock );
p_mi->i_refcount++; 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