VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
preparser.h File Reference

Go to the source code of this file.

Typedefs

typedef struct playlist_preparser_t playlist_preparser_t
 Preparser opaque structure.

Functions

playlist_preparser_tplaylist_preparser_New (vlc_object_t *, playlist_fetcher_t *)
 This function creates the preparser object and thread.
void playlist_preparser_Push (playlist_preparser_t *, input_item_t *)
 This function enqueues the provided item to be preparsed.
void playlist_preparser_Delete (playlist_preparser_t *)
 This function destroys the preparser object and thread.

Typedef Documentation

Preparser opaque structure.

The preparser object will retreive the meta data of any given input item in an asynchronous way. It will also issue art fetching requests.

Function Documentation

void playlist_preparser_Delete ( playlist_preparser_t )
playlist_preparser_t* playlist_preparser_New ( vlc_object_t ,
playlist_fetcher_t  
)
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().