VLC  3.0.21
Functions
libvlc.c File Reference
Include dependency graph for libvlc.c:

Functions

static void GetFilenames (libvlc_int_t *, unsigned, const char *const [])
 
libvlc_int_tlibvlc_InternalCreate (void)
 Allocate a blank libvlc instance, also setting the exit handler. More...
 
int libvlc_InternalInit (libvlc_int_t *p_libvlc, int i_argc, const char *ppsz_argv[])
 Initialize a libvlc instance This function initializes a previously allocated libvlc instance: More...
 
void libvlc_InternalCleanup (libvlc_int_t *p_libvlc)
 Cleanup a libvlc instance. More...
 
void libvlc_InternalDestroy (libvlc_int_t *p_libvlc)
 Destroy everything. More...
 
int vlc_MetadataRequest (libvlc_int_t *libvlc, input_item_t *item, input_item_meta_request_option_t i_options, int timeout, void *id)
 
int libvlc_MetadataRequest (libvlc_int_t *libvlc, input_item_t *item, input_item_meta_request_option_t i_options, int timeout, void *id)
 Requests extraction of the meta data for an input item (a.k.a. More...
 
int libvlc_ArtRequest (libvlc_int_t *libvlc, input_item_t *item, input_item_meta_request_option_t i_options)
 Requests retrieving/downloading art for an input item. More...
 
void libvlc_MetadataCancel (libvlc_int_t *libvlc, void *id)
 Cancels extraction of the meta data for an input item. More...
 

Detailed Description

This file contains functions to create and destroy libvlc instances

Function Documentation

◆ GetFilenames()

static void GetFilenames ( libvlc_int_t p_vlc,
unsigned  n,
const char * const  args[] 
)
static

◆ libvlc_ArtRequest()

int libvlc_ArtRequest ( libvlc_int_t libvlc,
input_item_t item,
input_item_meta_request_option_t  i_options 
)

Requests retrieving/downloading art for an input item.

The retrieval is performed asynchronously.

< Not enough memory

< No error

References libvlc_priv(), libvlc_priv_t::parser, playlist_preparser_fetcher_Push(), unlikely, VLC_ENOMEM, and VLC_SUCCESS.

Referenced by PlayItem().

◆ libvlc_InternalCleanup()

void libvlc_InternalCleanup ( libvlc_int_t p_libvlc)

◆ libvlc_InternalCreate()

libvlc_int_t* libvlc_InternalCreate ( void  )

Allocate a blank libvlc instance, also setting the exit handler.

Vlc's threading system must have been initialized first

References libvlc_priv_t::exit, libvlc_priv(), libvlc_priv_t::p_vlm, libvlc_priv_t::playlist, vlc_custom_create, and vlc_ExitInit().

◆ libvlc_InternalDestroy()

void libvlc_InternalDestroy ( libvlc_int_t p_libvlc)

Destroy everything.

This function requests the running threads to finish, waits for their termination, and destroys their structure. It stops the thread systems: no instance can run after this has run

Parameters
p_libvlcthe instance to destroy

References libvlc_priv_t::exit, libvlc_priv(), vlc_ExitDestroy(), vlc_internals, and vlc_object_release.

◆ libvlc_InternalInit()

int libvlc_InternalInit ( libvlc_int_t p_libvlc,
int  i_argc,
const char *  ppsz_argv[] 
)

◆ libvlc_MetadataCancel()

void libvlc_MetadataCancel ( libvlc_int_t libvlc,
void *  id 
)

Cancels extraction of the meta data for an input item.

This does nothing if the input item is already processed or if it was not added with libvlc_MetadataRequest()

References libvlc_priv(), libvlc_priv_t::parser, playlist_preparser_Cancel(), and unlikely.

Referenced by PlayItem().

◆ libvlc_MetadataRequest()

int libvlc_MetadataRequest ( libvlc_int_t libvlc,
input_item_t item,
input_item_meta_request_option_t  i_options,
int  timeout,
void *  id 
)

Requests extraction of the meta data for an input item (a.k.a.

preparsing). The actual extraction is asynchronous. It can be cancelled with libvlc_MetadataCancel()

< Not enough memory

< No error

References input_item_t::b_preparse_interact, input_item_t::i_preparse_depth, libvlc_priv(), input_item_t::lock, META_REQUEST_OPTION_DO_INTERACT, libvlc_priv_t::parser, playlist_preparser_Push(), unlikely, VLC_ENOMEM, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.

◆ vlc_MetadataRequest()

int vlc_MetadataRequest ( libvlc_int_t libvlc,
input_item_t item,
input_item_meta_request_option_t  i_options,
int  timeout,
void *  id 
)

< Not enough memory

< No error