VLC
4.0.0-dev
|
Go to the source code of this file.
Typedefs | |
typedef struct input_fetcher_t | input_fetcher_t |
Fetcher opaque structure. More... | |
Functions | |
input_fetcher_t * | input_fetcher_New (vlc_object_t *) |
This function creates the fetcher object and thread. More... | |
int | input_fetcher_Push (input_fetcher_t *, input_item_t *, input_item_meta_request_option_t, const input_fetcher_callbacks_t *, void *) |
This function enqueues the provided item to be art fetched. More... | |
void | input_fetcher_Delete (input_fetcher_t *) |
This function destroys the fetcher object and thread. More... | |
typedef struct input_fetcher_t input_fetcher_t |
Fetcher opaque structure.
The fetcher object will retrieve the art album data for any given input item in an asynchronous way.
void input_fetcher_Delete | ( | input_fetcher_t * | ) |
This function destroys the fetcher object and thread.
All pending input items will be released.
References input_fetcher_t::album_cache, background_worker_Delete(), input_fetcher_t::downloader, FreeCacheEntry(), input_fetcher_t::local, input_fetcher_t::network, and vlc_dictionary_clear().
Referenced by input_preparser_Delete().
input_fetcher_t* input_fetcher_New | ( | vlc_object_t * | ) |
This function creates the fetcher object and thread.
References input_fetcher_t::album_cache, background_worker_Delete(), input_fetcher_t::downloader, input_fetcher_t::local, input_fetcher_t::lock, input_fetcher_t::network, input_fetcher_t::owner, StartDownloader(), StartSearchLocal(), StartSearchNetwork(), unlikely, vlc_dictionary_init(), vlc_mutex_init(), and WorkerInit().
Referenced by input_preparser_New().
int input_fetcher_Push | ( | input_fetcher_t * | , |
input_item_t * | , | ||
input_item_meta_request_option_t | , | ||
const input_fetcher_callbacks_t * | , | ||
void * | |||
) |
This function enqueues the provided item to be art fetched.
The input item is retained until the art fetching is done or until the fetcher object is destroyed.
References background_worker_Push(), fetcher_request::cbs, input_item_Hold(), fetcher_request::item, input_fetcher_t::local, META_REQUEST_OPTION_FETCH_ANY, META_REQUEST_OPTION_FETCH_LOCAL, input_fetcher_t::network, NotifyArtFetchEnded(), fetcher_request::options, fetcher_request::rc, RequestRelease(), unlikely, fetcher_request::userdata, vlc_atomic_rc_init(), VLC_ENOMEM, and VLC_SUCCESS.
Referenced by input_preparser_fetcher_Push(), and PreparserCloseInput().