[vlc-devel] commit: playlist: Handle vlc_InputItemErrorWhenReadingChanged events. ( Pierre d'Herbemont )

git version control git at videolan.org
Fri Aug 1 22:50:11 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Fri Aug  1 22:50:57 2008 +0200| [fdb91a064e0291b5d69124008ec52c9d57f3fa77] | committer: Pierre d'Herbemont 

playlist: Handle vlc_InputItemErrorWhenReadingChanged events.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fdb91a064e0291b5d69124008ec52c9d57f3fa77
---

 src/playlist/item.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/playlist/item.c b/src/playlist/item.c
index 32eda97..cf98e58 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -134,6 +134,8 @@ static void install_input_item_observer( playlist_item_t * p_item )
                       input_item_changed, p_item );
     vlc_event_attach( p_em, vlc_InputItemInfoChanged,
                       input_item_changed, p_item );
+    vlc_event_attach( p_em, vlc_InputItemErrorWhenReadingChanged,
+                      input_item_changed, p_item );
 }
 
 static void uninstall_input_item_observer( playlist_item_t * p_item )
@@ -149,6 +151,8 @@ static void uninstall_input_item_observer( playlist_item_t * p_item )
                       input_item_changed, p_item );
     vlc_event_detach( p_em, vlc_InputItemInfoChanged,
                       input_item_changed, p_item );
+    vlc_event_detach( p_em, vlc_InputItemErrorWhenReadingChanged,
+                      input_item_changed, p_item );
 }
 
 /*****************************************************************************




More information about the vlc-devel mailing list