[vlc-devel] [PATCH] Add libvlc_media_list_player_retain() to libvlc.
alexey at alexeysokolov.co.cc
Tue May 31 16:33:15 CEST 2011
On 31.05.2011 18:17, Rémi Denis-Courmont wrote:
> On Tue, 31 May 2011 17:20:34 +0700, Alexey Sokolov
> <alexey at alexeysokolov.co.cc> wrote:
>> And there's no (obvious) way without retain() to reuse reference to
>> libvlc_media_list_player_t after it being stolen by the object.
> You can just specify that the object takes ownership.
> I mean, as far as I can tell, there is not much sense in multiple
> "objects" using the same media list player. If this is true, then there is
> not much sense in having reference counting for it.
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
Alexey "DarthGandalf" Sokolov
More information about the vlc-devel