[vlc-devel] [LONG] Some thoughts and questions about vout
Rémi Denis-Courmont
rdenis at simphalempin.com
Thu Nov 13 08:40:53 CET 2008
On Wed, 12 Nov 2008 22:38:58 +0100, "brezhoneg1" <brezhoneg1 at yahoo.fr>
wrote:
> I guess this vout recycling scheme wasn't removed just to make users
> enrage! If stability was at stake, that's a point.
>
> About vlc_object_find (being deprecated and yet so widely used), is
> there any guideline to figure out how to do things the new/right way?
> Without these guidelines, one can but feel helpless about all those
> FIND_ANYWHERE which prevent promising new libvlc api to deliver its true
> value!
Keep track of what you need to keep track of explicitly, via type-safe
pointers, thread-safe referencing, etc.
In any case, you CANNOT do recycling with vlc_object_find(). You have no
way to ensure that someone else is not trying to dispose or recycle the
same object at the _same_ time. In that case, vlc_object_find() is not only
ugly and restrictive, it's just plain wrong.
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list