[vlc-devel] [RFC] Fix input variables
fenrir at elivagar.org
Tue Nov 23 22:24:01 CET 2010
On Tue, Nov 23, 2010 at 09:10:54PM +0100, Pierre Ynard wrote:
> > Please don't do that kind of hacks to the variable system.
> > Just set the variables on the parent object and use inheritance. The
> > LibVLC media player already does that to a large extent.
> Assuming that in the common case, there are no two inputs concurrently
> running at the same time using that same parent object, how do you clean
> up stray variables for the following input? Also, in the VLM at least,
> the previous assumption is false so it just doesn't work.
> Granted, I could make a new patch to set variables on this dedicated
> object in the input resources.
Creating a dummy object that you use to hold the variables should work. I think
we need an input manager object to avoid duplicating code between libvlc and
playlist but I haven't really thought about this issue.
More information about the vlc-devel