lib: return the same object in libvlc_media_list_retain()

This commit is contained in:
Thomas Guillem 2023-03-23 11:03:32 +01:00 committed by Steve Lhomme
parent d5b7878397
commit 2ad8ef54bb
2 changed files with 4 additions and 2 deletions

View File

@ -56,8 +56,9 @@ LIBVLC_API void
* Retain reference to a media list
*
* \param p_ml a media list created with libvlc_media_list_new()
* \return the same object
*/
LIBVLC_API void
LIBVLC_API libvlc_media_list_t *
libvlc_media_list_retain( libvlc_media_list_t *p_ml );
/**

View File

@ -203,9 +203,10 @@ void libvlc_media_list_release( libvlc_media_list_t * p_mlist )
*
* Increase an object refcount.
**************************************************************************/
void libvlc_media_list_retain( libvlc_media_list_t * p_mlist )
libvlc_media_list_t *libvlc_media_list_retain( libvlc_media_list_t * p_mlist )
{
vlc_atomic_rc_inc( &p_mlist->rc );
return p_mlist;
}
/**************************************************************************