[vlc-devel] conclusion on input callback
Vaclav Koldus
vaclav.koldus at avpark.cz
Thu Jan 19 14:37:31 CET 2006
JFYI:
I tried it and this works great for me:
playlist_t *p_playlist;
p_playlist = vlc_object_find( p_this, VLC_OBJECT_PLAYLIST,
FIND_ANYWHERE );
if( p_playlist )
var_AddCallback( p_playlist, "playlist-current",
SourceChanged, p_this );
static int SourceChanged( vlc_object_t *p_this, const char *psz_var,
vlc_value_t oval, vlc_value_t nval, void *param)
{
playlist_t *p_playlist = (playlist_t *)p_this;
printf("changed %s \n", p_playlist->p_input->input.p_item->psz_name);
return VLC_SUCCESS;
}
Many thanks,
really appreciate your help!
HAND
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