[vlc-devel] commit: playlist: Respond to Name and Info changed events. (Pierre d' Herbemont )
git version control
git at videolan.org
Sat Jun 14 16:12:52 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sat Jun 14 16:04:24 2008 +0200| [89237ca2e9266e3cbbd8f561585443eba4584c6d]
playlist: Respond to Name and Info changed events.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=89237ca2e9266e3cbbd8f561585443eba4584c6d
---
src/playlist/item.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/playlist/item.c b/src/playlist/item.c
index c638677..698ede0 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -129,6 +129,10 @@ static void install_input_item_observer( playlist_item_t * p_item )
input_item_changed, p_item );
vlc_event_attach( p_em, vlc_InputItemMetaChanged,
input_item_changed, p_item );
+ vlc_event_attach( p_em, vlc_InputItemNameChanged,
+ input_item_changed, p_item );
+ vlc_event_attach( p_em, vlc_InputItemInfoChanged,
+ input_item_changed, p_item );
}
static void uninstall_input_item_observer( playlist_item_t * p_item )
@@ -140,6 +144,10 @@ static void uninstall_input_item_observer( playlist_item_t * p_item )
input_item_changed, p_item );
vlc_event_detach( p_em, vlc_InputItemSubItemAdded,
input_item_subitem_added, p_item );
+ vlc_event_detach( p_em, vlc_InputItemNameChanged,
+ input_item_subitem_added, p_item );
+ vlc_event_detach( p_em, vlc_InputItemInfoChanged,
+ input_item_subitem_added, p_item );
}
/*****************************************************************************
More information about the vlc-devel
mailing list