[vlc-devel] [PATCH] Add libvlc_media_list_player_retain() to libvlc.

Rémi Duraffort ivoire at videolan.org
Thu Jun 2 18:32:28 CEST 2011


Hi,

> Well, it's up to people who uses libvlc.
> player_t has i_refcount field anyway, the patch just makes it more useful.
>
> If making a feature is cheap and doesn't break anything, I don't see the  
> reason why not to have the feature.
> (feature here == possibility to have several "objects" using the same  
> player)

IMHO, the code of libvlc_media_list_player claim to be thread-safe (I
re-read it really quickly and it seems to be true at least for the main
functions) so using the same media_list_player from 2 differents objects
is possible.
For the reason of such usage I think that's up to the user and it makes
the API more consistent (every refcounted object can be created, retained
and released).


Regards

-- 
Rémi Duraffort | ivoire
http://ivoire.dinauz.org/blog/



More information about the vlc-devel mailing list