lib: return the same object in libvlc_media_player_list_retain()

This commit is contained in:
Thomas Guillem 2023-03-23 11:05:36 +01:00 committed by Steve Lhomme
parent ad56ab86a1
commit 817edbb116
2 changed files with 4 additions and 2 deletions

View File

@ -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 );
/**

View File

@ -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;
}
/**************************************************************************