[vlc-devel] how to get Notification about Pause / Play / Stop / Continue inside Filter Module?

Pierre d'Herbemont pdherbemont at free.fr
Wed Nov 21 15:37:09 CET 2007


Hi,

On Nov 20, 2007, at 10:35 PM, Andre Weber wrote:

> What I have to implement to get notified if the video output gets  
> paused, stopped
> or continued?
>
> I have tried to add a callback to the variable "state" inside my  
> filter init method:
>
> var_AddCallback( p_sys->p_vout, "state", StateCallback, p_vout );

You probably want to listen event from the input thread object  
instead of the vout.

I would suggest you to have a look to src/control/ 
media_instance.c:input_state_changed(). We do implement the handler  
and such for state changes.

Pierre.



More information about the vlc-devel mailing list