Commit bf7394d3 authored by Clément Stenac's avatar Clément Stenac

Start supporting preparse status

parent 857b51f9
......@@ -48,6 +48,11 @@
#define VLC_META_CODEC_NAME N_("Codec Name")
#define VLC_META_CODEC_DESCRIPTION N_("Codec Description")
#define ITEM_PREPARSED 0x01
#define ITEM_META_FETCHED 0x02
#define ITEM_ARTURL_FETCHED 0x04
#define ITEM_ART_FETCHED 0x08
struct vlc_meta_t
{
char *psz_title;
......@@ -67,6 +72,8 @@ struct vlc_meta_t
char *psz_publisher;
char *psz_encodedby;
char *psz_arturl;
int i_status;
#if 0
/* track meta information */
int i_track;
......@@ -117,6 +124,7 @@ static inline vlc_meta_t *vlc_meta_New( void )
m->psz_publisher = NULL;
m->psz_encodedby = NULL;
m->psz_arturl = NULL;
m->i_status = 0;
return m;
}
......
......@@ -479,9 +479,8 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
PL_UNLOCK;
if( b_preparsed )
{
var_SetInteger( p_playlist, "item-change",
p_current->i_id );
p_current->p_meta->i_status |= ITEM_PREPARSED;
var_SetInteger( p_playlist, "item-change", p_current->i_id );
}
vlc_gc_decref( p_current );
/* Add to secondary preparse queue */
......
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