mirror of https://code.videolan.org/videolan/vlc
lib: assert instead of doing a dynamic check
This commit is contained in:
parent
098855b2b5
commit
ad56ab86a1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue