#include <stdlib.h>
#include "input_internal.h"
-#include "vlc_playlist.h"
static void UpdateBookmarksOption( input_thread_t * );
-static void NotifyPlaylist( input_thread_t * );
/****************************************************************************
* input_Control
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 );
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 );
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;
}
}
-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 = vlc_object_find( p_input,
- VLC_OBJECT_PLAYLIST, FIND_PARENT );
- if( !p_playlist )
- return;
- var_SetInteger( p_playlist, "item-change",
- p_input->p->input.p_item->i_id );
- vlc_object_release( p_playlist );
-}
-
static void UpdateBookmarksOption( input_thread_t *p_input )
{
int i, i_len = 0;