Commit 470aabb1 authored by Antoine Cellerier's avatar Antoine Cellerier

Also update now playing info when playing a new item.

parent 610ac485
...@@ -112,7 +112,10 @@ static int Open( vlc_object_t *p_this ) ...@@ -112,7 +112,10 @@ static int Open( vlc_object_t *p_this )
return VLC_ENOOBJ; return VLC_ENOOBJ;
} }
/* Item's info changes */
var_AddCallback( p_playlist, "item-change", ItemChange, p_intf ); var_AddCallback( p_playlist, "item-change", ItemChange, p_intf );
/* We're playing a new item */
var_AddCallback( p_playlist, "playlist-current", ItemChange, p_intf );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
p_intf->pf_run = Run; p_intf->pf_run = Run;
...@@ -135,6 +138,7 @@ static void Close( vlc_object_t *p_this ) ...@@ -135,6 +138,7 @@ static void Close( vlc_object_t *p_this )
if( p_playlist ) if( p_playlist )
{ {
var_DelCallback( p_playlist, "item-change", ItemChange, p_intf );
var_DelCallback( p_playlist, "playlist-current", ItemChange, p_intf ); var_DelCallback( p_playlist, "playlist-current", ItemChange, p_intf );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment