}
/* */
- var_AddCallback( pl_Get( p_intf ), "activity", ItemChange, p_intf );
+ var_AddCallback( pl_Get( p_intf ), "input-current", ItemChange, p_intf );
return VLC_SUCCESS;
}
intf_thread_t *p_intf = ( intf_thread_t* ) p_this;
intf_sys_t *p_sys = p_intf->p_sys;
- var_DelCallback( pl_Get( p_intf ), "activity", ItemChange, p_this );
+ var_DelCallback( pl_Get( p_intf ), "input-current", ItemChange, p_this );
if( p_sys->notification )
{
char *psz_artist;
char *psz_album;
char *psz_arturl;
- input_thread_t *p_input = playlist_CurrentInput( (playlist_t*)p_this );
+ input_thread_t *p_input = newval.p_address;
intf_thread_t *p_intf = param;
intf_sys_t *p_sys = p_intf->p_sys;
return VLC_SUCCESS;
if( p_input->b_dead )
- {
/* Not playing anything ... */
- vlc_object_release( p_input );
return VLC_SUCCESS;
- }
-
- /* Wait a tad so the meta has been fetched
- * FIXME that's awfully wrong */
- msleep( 10000 );
/* Playing something ... */
input_item_t *p_input_item = input_GetItem( p_input );
if( EMPTY_STR( psz_title ) )
{
free( psz_title );
- vlc_object_release( p_input );
return VLC_SUCCESS;
}
GdkPixbuf *pix = NULL;
psz_arturl = input_item_GetArtURL( p_input_item );
- vlc_object_release( p_input );
if( psz_arturl )
{