lib: assert instead of doing a dynamic check

This commit is contained in:
Thomas Guillem 2023-03-23 12:50:09 +01:00 committed by Steve Lhomme
parent 098855b2b5
commit ad56ab86a1
1 changed files with 1 additions and 3 deletions

View File

@ -544,9 +544,7 @@ void libvlc_media_list_player_release(libvlc_media_list_player_t * p_mlp)
**************************************************************************/
void libvlc_media_list_player_retain(libvlc_media_list_player_t * p_mlp)
{
if (!p_mlp)
return;
assert(p_mlp);
vlc_atomic_rc_inc(&p_mlp->rc);
}