Commit b6c60944 authored by Laurent Aimar's avatar Laurent Aimar

Removed meta-preparsed variable.

Audioscrobbler is not fixed but I let a comment explaining how to do it.
parent 481e0b5b
......@@ -571,9 +571,13 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
}
else
{
#if 0
/* XXX this won't work. One way would be to monitor p_input "state",
* once it is no more INIT_S, meta should be parsed */
/* We'll read the meta data when it will be preparsed */
var_AddCallback( p_input, "meta-preparsed", MetaPreparsed, p_intf );
p_sys->b_preparsed_cb = VLC_TRUE;
#endif
vlc_object_release( p_input );
return VLC_SUCCESS;
}
......
......@@ -199,12 +199,6 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
/* Create Object Variables for private use only */
input_ConfigVarInit( p_input );
vlc_mutex_lock( &p_item->lock );
if( p_item->p_meta && (p_item->p_meta->i_status & ITEM_PREPARSED ) )
var_SetBool( p_input, "meta-preparsed", VLC_TRUE );
vlc_mutex_unlock( &p_item->lock );
/* Create Objects variables for public Get and Set */
input_ControlVarInit( p_input );
......@@ -2650,6 +2644,19 @@ static void DemuxMeta( input_thread_t *p_input, vlc_meta_t *p_meta, demux_t *p_d
vlc_bool_t b_bool;
module_t *p_id3;
#if 0
/* XXX I am not sure it is a great idea, besides, there is more than that
* if we want to do it right */
vlc_mutex_lock( &p_item->lock );
if( p_item->p_meta && (p_item->p_meta->i_status & ITEM_PREPARSED ) )
{
vlc_mutex_unlock( &p_item->lock );
return;
}
vlc_mutex_unlock( &p_item->lock );
#endif
demux2_Control( p_demux, DEMUX_GET_META, p_meta );
if( demux2_Control( p_demux, DEMUX_HAS_UNSUPPORTED_META, &b_bool ) )
return;
......
......@@ -463,9 +463,6 @@ void input_ConfigVarInit ( input_thread_t *p_input )
var_Create( p_input, "meta-description", VLC_VAR_STRING|VLC_VAR_DOINHERIT);
var_Create( p_input, "meta-date", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
var_Create( p_input, "meta-url", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
var_Create( p_input, "meta-preparsed", VLC_VAR_BOOL );
var_SetBool( p_input, "meta-preparsed", VLC_FALSE );
}
/*****************************************************************************
......
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