}
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;
}
/* 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 );
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;
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 );
}
/*****************************************************************************