[vlc-devel] input callback

Vaclav Koldus vaclav.koldus at avpark.cz
Wed Jan 18 14:49:37 CET 2006


Hi!

Another question for my module.

I need to find out the name of file being played. I do this just this way:

input_thread_t *p_input;
char fname[127];

    p_input = vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_PARENT );
   
.
.
    strcpy ( fname, p_input->input.p_item->psz_name );
.
.

Now I need to react when the input file changes. Is there any chance to 
set callback function?
Or do I have to retrieve the filename this way periodicaly and look for 
change?

Thanks!

Vaclav.

-- 
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 mailing list