mirror of https://code.videolan.org/videolan/vlc
lib: return the same object in libvlc_media_player_list_retain()
This commit is contained in:
parent
ad56ab86a1
commit
817edbb116
|
@ -78,8 +78,9 @@ LIBVLC_API void
|
|||
* libvlc_media_list_player_release() to decrement reference count.
|
||||
*
|
||||
* \param p_mlp media player list object
|
||||
* \return the same object
|
||||
*/
|
||||
LIBVLC_API void
|
||||
LIBVLC_API libvlc_media_list_player_t *
|
||||
libvlc_media_list_player_retain( libvlc_media_list_player_t *p_mlp );
|
||||
|
||||
/**
|
||||
|
|
|
@ -542,10 +542,11 @@ void libvlc_media_list_player_release(libvlc_media_list_player_t * p_mlp)
|
|||
/**************************************************************************
|
||||
* retain (Public)
|
||||
**************************************************************************/
|
||||
void libvlc_media_list_player_retain(libvlc_media_list_player_t * p_mlp)
|
||||
libvlc_media_list_player_t *libvlc_media_list_player_retain(libvlc_media_list_player_t * p_mlp)
|
||||
{
|
||||
assert(p_mlp);
|
||||
vlc_atomic_rc_inc(&p_mlp->rc);
|
||||
return p_mlp;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
|
Loading…
Reference in New Issue