|
VLC
2.1.0-git
|

Data Structures | |
| struct | playlist_preparser_t |
Functions | |
| static void * | Thread (void *data) |
| This function does the preparsing and issues the art fetching requests. | |
| playlist_preparser_t * | playlist_preparser_New (vlc_object_t *parent, playlist_fetcher_t *p_fetcher) |
| This function creates the preparser object and thread. | |
| void | playlist_preparser_Push (playlist_preparser_t *p_preparser, input_item_t *p_item) |
| This function enqueues the provided item to be preparsed. | |
| void | playlist_preparser_Delete (playlist_preparser_t *p_preparser) |
| This function destroys the preparser object and thread. | |
| static void | Preparse (vlc_object_t *obj, input_item_t *p_item) |
| This function preparses an item when needed. | |
| static void | Art (playlist_preparser_t *p_preparser, input_item_t *p_item) |
| This function ask the fetcher object to fetch the art when needed. | |
|
static |
This function ask the fetcher object to fetch the art when needed.
References ALBUM_ART_ALL, playlist_preparser_t::i_art_policy, input_item_t::lock, msg_Dbg, playlist_preparser_t::object, playlist_preparser_t::p_fetcher, input_item_t::p_meta, playlist_fetcher_Push(), psz_name, vlc_meta_ArtworkURL, vlc_meta_Get(), vlc_meta_Title, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by Thread().
| void playlist_preparser_Delete | ( | playlist_preparser_t * | ) |
This function destroys the preparser object and thread.
All pending input items will be released.
References playlist_preparser_t::b_live, playlist_preparser_t::i_waiting, playlist_preparser_t::lock, playlist_preparser_t::pp_waiting, REMOVE_ELEM, vlc_cond_destroy(), vlc_cond_wait(), vlc_gc_decref, vlc_mutex_destroy(), vlc_mutex_lock(), vlc_mutex_unlock(), and playlist_preparser_t::wait.
Referenced by playlist_Destroy().
| playlist_preparser_t* playlist_preparser_New | ( | vlc_object_t * | parent, |
| playlist_fetcher_t * | p_fetcher | ||
| ) |
This function creates the preparser object and thread.
References playlist_preparser_t::b_live, playlist_preparser_t::i_art_policy, playlist_preparser_t::i_waiting, playlist_preparser_t::lock, playlist_preparser_t::object, playlist_preparser_t::p_fetcher, playlist_preparser_t::pp_waiting, var_InheritInteger, vlc_cond_init(), vlc_mutex_init(), and playlist_preparser_t::wait.
Referenced by playlist_Create().
| void playlist_preparser_Push | ( | playlist_preparser_t * | , |
| input_item_t * | |||
| ) |
This function enqueues the provided item to be preparsed.
The input item is retained until the preparsing is done or until the preparser object is deleted.
References playlist_preparser_t::b_live, playlist_preparser_t::i_waiting, INSERT_ELEM, playlist_preparser_t::lock, msg_Warn, playlist_preparser_t::object, playlist_preparser_t::pp_waiting, Thread(), vlc_clone_detach(), vlc_gc_incref, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_THREAD_PRIORITY_LOW.
Referenced by playlist_PreparseEnqueue().
|
static |
This function preparses an item when needed.
References input_item_t::i_type, i_type, input_item_IsPreparsed(), input_item_SetPreparsed(), input_Preparse(), ITEM_TYPE_FILE, input_item_t::lock, var_SetAddress, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by Thread().
|
static |
This function does the preparsing and issues the art fetching requests.
References Art(), playlist_preparser_t::b_live, playlist_preparser_t::i_waiting, playlist_preparser_t::lock, playlist_preparser_t::object, playlist_preparser_t::pp_waiting, Preparse(), REMOVE_ELEM, vlc_cond_signal(), vlc_gc_decref, vlc_mutex_lock(), vlc_mutex_unlock(), and playlist_preparser_t::wait.
Referenced by playlist_preparser_Push().
1.8.1.2