[vlc-devel] commit: input: Don't do NotifyPlaylist() now that the playlist properly listen to input item event. (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:11:03 2008 +0200| [bbd88529842f240f4bbe8a66b2e4b8d4a554d75d]
input: Don't do NotifyPlaylist() now that the playlist properly listen to input item event.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bbd88529842f240f4bbe8a66b2e4b8d4a554d75d
---
src/input/control.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/src/input/control.c b/src/input/control.c
index 50e196f..afe5197 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -35,7 +35,6 @@
static void UpdateBookmarksOption( input_thread_t * );
-static void NotifyPlaylist( input_thread_t * );
/****************************************************************************
* input_Control
@@ -201,7 +200,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
if( !p_input->b_preparsing )
{
- NotifyPlaylist( p_input );
vlc_event_t event;
event.type = vlc_InputItemInfoChanged;
vlc_event_send( &p_input->p->input.p_item->event_manager, &event );
@@ -273,7 +271,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
if( !p_input->b_preparsing )
{
- NotifyPlaylist( p_input );
vlc_event_t event;
event.type = vlc_InputItemInfoChanged;
vlc_event_send( &p_input->p->input.p_item->event_manager, &event );
@@ -309,7 +306,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
if( !p_input->b_preparsing )
{
- NotifyPlaylist( p_input );
vlc_event_t event;
event.type = vlc_InputItemNameChanged;
event.u.input_item_name_changed.new_name = psz_name;
@@ -610,18 +606,6 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
}
}
-static void NotifyPlaylist( input_thread_t *p_input )
-{
- /* FIXME: We need to avoid that dependency on the playlist
- * because it is a circular dependency:
- * ( playlist -> input -> playlist ) */
- playlist_t *p_playlist = pl_Yield( p_input );
- if( VLC_OBJECT(p_playlist) == p_input->p_parent )
- var_SetInteger( p_playlist, "item-change",
- p_input->p->input.p_item->i_id );
- pl_Release( p_input );
-}
-
static void UpdateBookmarksOption( input_thread_t *p_input )
{
int i, i_len = 0;
More information about the vlc-devel
mailing list