[vlc-devel] Re: input callback
Sigmund Augdal Helberg
sigmund.augdal at gmail.com
Wed Jan 18 16:16:26 CET 2006
On Wed, 2006-01-18 at 16:05 +0100, Antoine Cellerier wrote:
> On Wed, Jan 18, 2006, Vaclav Koldus wrote:
> > That's why I would rather add a callback to input. Now this would work
> > fine, but
> > in future I want to use VLM. Is there any possibility??
> The issue is that you can't really add a callback to input since it is
> killed and respawned when a new one is needed. (Someone correct me if
> i'm wrong)
> And i don't know about any similar callback variable that the vlm
> media element might update when changing the input it's using. (That
> wouldn't be too hard to add i guess)
You could probably grab a hold on the input (using vlc_object_find) and
then query it's b_die at regular intervals. And then trigger a name
renewal at this time. make sure you call vlc_object_release once b_die
is set, otherwise you'll get nasty errors.
After the current input has died there could probably be a while when
there is no input before a new one is spawned, you should handle this
Btw, what kind of module are you working on? If it is (as you say) a
child of the input, then the module will very likely be killed as well
when the input is.
Hope this helps (and works).
> Antoine Cellerier
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel