mirror of https://code.videolan.org/videolan/vlc
lib: return the same object in libvlc_media_list_retain()
This commit is contained in:
parent
d5b7878397
commit
2ad8ef54bb
|
@ -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 );
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
|
|
Loading…
Reference in New Issue