VLC 4.0.0-dev
|
Data Structures | |
struct | input_item_opaque |
struct | item_type_entry |
struct | rdh_slave |
struct | rdh_dir |
Functions | |
static enum input_item_type_e | GuessType (const input_item_t *p_item, bool *p_net) |
void | input_item_SetPreparsed (input_item_t *p_i) |
void | input_item_SetArtNotFound (input_item_t *p_i, bool b_not_found) |
void | input_item_SetArtFetched (input_item_t *p_i, bool b_art_fetched) |
void | input_item_SetMeta (input_item_t *p_i, vlc_meta_type_t meta_type, const char *psz_val) |
void | input_item_SetMetaExtra (input_item_t *p_i, const char *psz_name, const char *psz_value) |
void | input_item_CopyOptions (input_item_t *p_child, input_item_t *p_parent) |
bool | input_item_MetaMatch (input_item_t *p_i, vlc_meta_type_t meta_type, const char *psz) |
const char * | input_item_GetMetaLocked (input_item_t *item, vlc_meta_type_t meta_type) |
char * | input_item_GetMeta (input_item_t *p_i, vlc_meta_type_t meta_type) |
static const char * | input_item_GetMetaExtraLocked (input_item_t *item, const char *psz_name) |
char * | input_item_GetMetaExtra (input_item_t *p_i, const char *psz_name) |
unsigned | input_item_GetMetaExtraNames (input_item_t *p_i, char ***pppsz_names) |
char * | input_item_GetTitleFbName (input_item_t *p_item) |
char * | input_item_GetName (input_item_t *p_item) |
void | input_item_SetName (input_item_t *p_item, const char *psz_name) |
char * | input_item_GetURI (input_item_t *p_i) |
void | input_item_SetURI (input_item_t *p_i, const char *psz_uri) |
vlc_tick_t | input_item_GetDuration (input_item_t *p_i) |
void | input_item_SetDuration (input_item_t *p_i, vlc_tick_t i_duration) |
char * | input_item_GetNowPlayingFb (input_item_t *p_item) |
bool | input_item_IsPreparsed (input_item_t *p_item) |
bool | input_item_IsArtFetched (input_item_t *p_item) |
input_item_t * | input_item_Hold (input_item_t *p_item) |
Holds an input item, i.e. | |
void | input_item_Release (input_item_t *p_item) |
Releases an input item, i.e. | |
int | input_item_AddOption (input_item_t *p_input, const char *psz_option, unsigned flags) |
This function allows to add an option to an existing input_item_t. | |
int | input_item_AddOptions (input_item_t *p_item, int i_options, const char *const *ppsz_options, unsigned i_flags) |
This function add several options to an existing input_item_t. | |
int | input_item_AddOpaque (input_item_t *item, const char *name, void *value) |
void | input_item_ApplyOptions (vlc_object_t *obj, input_item_t *item) |
static int | bsearch_strcmp_cb (const void *a, const void *b) |
static bool | input_item_IsMaster (const char *psz_filename) |
bool | input_item_slave_GetType (const char *psz_filename, enum slave_type *p_slave_type) |
input_item_slave_t * | input_item_slave_New (const char *psz_uri, enum slave_type i_type, enum slave_priority i_priority) |
int | input_item_AddSlave (input_item_t *p_item, input_item_slave_t *p_slave) |
This function allows adding a slave to an existing input item. | |
static info_category_t * | InputItemFindCat (input_item_t *p_item, const char *psz_cat) |
bool | input_item_Playable (const char *psz_filename) |
This function checks whether the input item is of a type that can be played. | |
char * | input_item_GetInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name) |
Get a info item from a given category in a given input item. | |
char * | input_item_GetInfoLocked (input_item_t *p_i, const char *psz_cat, const char *psz_name) |
static int | InputItemVaAddInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format, va_list args) |
int | input_item_AddInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format,...) |
int | input_item_DelInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name) |
void | input_item_ReplaceInfos (input_item_t *p_item, info_category_t *p_cat) |
void | input_item_MergeInfos (input_item_t *p_item, info_category_t *p_cat) |
void | input_item_SetEpgEvent (input_item_t *p_item, const vlc_epg_event_t *p_epg_evt) |
void | input_item_SetEpg (input_item_t *p_item, const vlc_epg_t *p_update, bool b_current_source) |
void | input_item_ChangeEPGSource (input_item_t *p_item, int i_source_id) |
void | input_item_SetEpgTime (input_item_t *p_item, int64_t i_time) |
void | input_item_SetEpgOffline (input_item_t *p_item) |
input_item_t * | input_item_NewExt (const char *psz_uri, const char *psz_name, vlc_tick_t duration, enum input_item_type_e type, enum input_item_net_type i_net) |
This function creates a new input_item_t with the provided information. | |
input_item_t * | input_item_Copy (input_item_t *p_input) |
This function creates a new input_item_t as a copy of another. | |
static int | typecmp (const void *key, const void *entry) |
input_item_node_t * | input_item_node_Create (input_item_t *p_input) |
Start adding multiple subitems. | |
void | input_item_node_Delete (input_item_node_t *p_node) |
Delete a node created with input_item_node_Create() and all its children. | |
input_item_node_t * | input_item_node_AppendItem (input_item_node_t *p_node, input_item_t *p_item) |
Add a new child node to this parent node that will point to this subitem. | |
void | input_item_node_AppendNode (input_item_node_t *p_parent, input_item_node_t *p_child) |
Add an already created node to children of this parent node. | |
void | input_item_node_RemoveNode (input_item_node_t *parent, input_item_node_t *child) |
Remove a node from its parent. | |
void | input_item_UpdateTracksInfo (input_item_t *item, const es_format_t *fmt, const char *es_id, bool es_id_stable) |
char * | input_item_CreateFilename (input_item_t *item, const char *dir, const char *filenamefmt, const char *ext) |
This function creates a sane filename path. | |
static int | rdh_compar_type (input_item_t *p1, input_item_t *p2) |
static int | rdh_compar_filename (const void *a, const void *b) |
static void | rdh_sort (input_item_node_t *p_node) |
static bool | rdh_file_has_ext (const char *psz_filename, const char *psz_ignored_exts) |
Does the provided file name has one of the extension provided ? | |
static bool | rdh_file_is_ignored (struct vlc_readdir_helper *p_rdh, const char *psz_filename) |
static char * | rdh_name_from_filename (const char *psz_filename) |
static uint8_t | rdh_get_slave_priority (input_item_t *p_item, input_item_slave_t *p_slave, const char *psz_slave_filename) |
static int | rdh_should_match_idx (struct vlc_readdir_helper *p_rdh, struct rdh_slave *p_rdh_sub) |
static void | rdh_attach_slaves (struct vlc_readdir_helper *p_rdh, input_item_node_t *p_parent_node) |
static int | rdh_unflatten (struct vlc_readdir_helper *p_rdh, input_item_node_t **pp_node, const char *psz_path, int i_net) |
void | vlc_readdir_helper_init (struct vlc_readdir_helper *p_rdh, vlc_object_t *p_obj, input_item_node_t *p_node) |
Init a vlc_readdir_helper struct. | |
void | vlc_readdir_helper_finish (struct vlc_readdir_helper *p_rdh, bool b_success) |
Finish adding items to the node. | |
int | vlc_readdir_helper_additem (struct vlc_readdir_helper *p_rdh, const char *psz_uri, const char *psz_flatpath, const char *psz_filename, int i_type, int i_net, input_item_t **restrict created_item) |
|
static |
References strcasecmp().
Referenced by input_item_IsMaster(), and input_item_slave_GetType().
|
static |
int input_item_AddInfo | ( | input_item_t * | p_i, |
const char * | psz_cat, | ||
const char * | psz_name, | ||
const char * | psz_format, | ||
... | |||
) |
References InputItemVaAddInfo(), input_item_t::lock, psz_name, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutProgramEpg(), and EsOutProgramUpdateScrambled().
int input_item_AddOpaque | ( | input_item_t * | item, |
const char * | name, | ||
void * | value | ||
) |
References input_item_t::lock, name, input_item_t::opaques, unlikely, VLC_ENOMEM, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
int input_item_AddOption | ( | input_item_t * | p_input, |
const char * | psz_option, | ||
unsigned | flags | ||
) |
This function allows to add an option to an existing input_item_t.
References input_item_t::i_options, input_item_t::lock, input_item_t::optflagc, input_item_t::optflagv, input_item_t::ppsz_options, strdup(), TAB_APPEND, unlikely, VLC_EGENERIC, VLC_ENOMEM, VLC_INPUT_OPTION_UNIQUE, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
Referenced by input_item_AddOptions(), and vlm_ControlMediaInstanceStart().
int input_item_AddOptions | ( | input_item_t * | p_item, |
int | i_options, | ||
const char *const * | ppsz_options, | ||
unsigned | i_flags | ||
) |
This function add several options to an existing input_item_t.
References input_item_AddOption(), and VLC_SUCCESS.
Referenced by add_to_playlist(), and intf_InsertItem().
int input_item_AddSlave | ( | input_item_t * | p_item, |
input_item_slave_t * | p_slave | ||
) |
This function allows adding a slave to an existing input item.
The slave is owned by the input item after this call.
References input_item_slave::i_priority, input_item_t::i_slaves, input_item_t::lock, input_item_t::pp_slaves, SLAVE_PRIORITY_MATCH_NONE, TAB_APPEND, VLC_EGENERIC, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
Referenced by Control(), LoadSlaves(), and rdh_attach_slaves().
void input_item_ApplyOptions | ( | vlc_object_t * | obj, |
input_item_t * | item | ||
) |
References input_item_t::i_options, input_item_t::lock, input_item_t::opaques, input_item_t::optflagc, input_item_t::optflagv, input_item_t::ppsz_options, var_Create(), var_OptionParse(), var_SetAddress(), VLC_INPUT_OPTION_TRUSTED, vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_VAR_ADDRESS.
Referenced by input_Create(), and vlc_readdir_helper_init().
void input_item_ChangeEPGSource | ( | input_item_t * | p_item, |
int | i_source_id | ||
) |
References vlc_epg_t::b_present, input_item_t::i_epg, vlc_epg_t::i_source_id, input_item_t::lock, input_item_t::p_epg_table, input_item_t::pp_epg, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutProgramSelect(), and input_item_SetEpgOffline().
input_item_t * input_item_Copy | ( | input_item_t * | p_input | ) |
This function creates a new input_item_t as a copy of another.
References input_item_t::b_net, input_item_t::i_duration, input_item_slave::i_priority, input_item_t::i_slaves, input_item_t::i_type, input_item_slave::i_type, input_item_CopyOptions(), input_item_NewExt(), input_item_slave_New(), ITEM_NET_UNKNOWN, input_item_t::lock, input_item_t::p_meta, input_item_t::pp_slaves, input_item_t::psz_name, input_item_t::psz_uri, input_item_slave::psz_uri, TAB_APPEND, unlikely, vlc_meta_Merge(), vlc_mutex_lock(), and vlc_mutex_unlock().
void input_item_CopyOptions | ( | input_item_t * | p_child, |
input_item_t * | p_parent | ||
) |
References input_item_t::i_options, likely, input_item_t::lock, input_item_t::optflagc, input_item_t::optflagv, input_item_t::ppsz_options, strdup(), unlikely, vlc_alloc(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_item_Copy(), rdh_unflatten(), and vlc_readdir_helper_additem().
char * input_item_CreateFilename | ( | input_item_t * | item, |
const char * | dir, | ||
const char * | filenamefmt, | ||
const char * | ext | ||
) |
This function creates a sane filename path.
References asprintf(), DIR_SEP, filename_sanitize(), str_format(), and unlikely.
Referenced by EsOutSetRecord().
int input_item_DelInfo | ( | input_item_t * | p_i, |
const char * | psz_cat, | ||
const char * | psz_name | ||
) |
References info_category_Delete(), info_category_DeleteInfo(), InputItemFindCat(), input_item_t::lock, info_category_t::node, psz_name, VLC_EGENERIC, vlc_list_remove(), vlc_mutex_lock(), vlc_mutex_unlock(), and VLC_SUCCESS.
Referenced by EsOutDeleteInfoEs(), EsOutProgramEpg(), EsOutProgramMeta(), EsOutProgramUpdateScrambled(), input_item_SetEpg(), and input_item_SetEpgOffline().
vlc_tick_t input_item_GetDuration | ( | input_item_t * | p_i | ) |
References input_item_t::i_duration, INPUT_DURATION_INDEFINITE, INPUT_DURATION_UNSET, input_item_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by InputSourceGetLength(), and vlc_strfplayer().
char * input_item_GetInfo | ( | input_item_t * | p_i, |
const char * | psz_cat, | ||
const char * | psz_name | ||
) |
Get a info item from a given category in a given input item.
p_i | The input item to get info from |
psz_cat | String representing the category for the info |
psz_name | String representing the name of the desired info |
References input_item_GetInfoLocked(), input_item_t::lock, psz_name, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_FindArtInCacheUsingItemUID(), and input_SaveArt().
char * input_item_GetInfoLocked | ( | input_item_t * | p_i, |
const char * | psz_cat, | ||
const char * | psz_name | ||
) |
References info_category_FindInfo(), InputItemFindCat(), input_item_t::lock, psz_name, info_t::psz_value, strdup(), and vlc_mutex_assert.
Referenced by input_item_GetInfo(), and vlc_playlist_item_meta_InitField().
char * input_item_GetMeta | ( | input_item_t * | p_i, |
vlc_meta_type_t | meta_type | ||
) |
References input_item_GetMetaLocked(), input_item_t::lock, strdup(), input_item_opaque::value, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_item_GetNowPlayingFb(), vout_OSDEpg(), and write_meta().
char * input_item_GetMetaExtra | ( | input_item_t * | p_i, |
const char * | psz_name | ||
) |
|
static |
References input_item_t::lock, input_item_t::p_meta, psz_name, vlc_meta_GetExtra(), and vlc_mutex_assert.
Referenced by input_item_GetMetaExtra().
unsigned input_item_GetMetaExtraNames | ( | input_item_t * | p_i, |
char *** | pppsz_names | ||
) |
const char * input_item_GetMetaLocked | ( | input_item_t * | item, |
vlc_meta_type_t | meta_type | ||
) |
References input_item_t::lock, input_item_t::p_meta, vlc_meta_Get(), and vlc_mutex_assert.
Referenced by input_item_GetMeta(), and vlc_playlist_item_meta_InitField().
char * input_item_GetName | ( | input_item_t * | p_item | ) |
References input_item_t::lock, input_item_t::psz_name, psz_name, strdup(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by Destroy(), DisplayVoutTitle(), input_Create(), and vlc_strfplayer().
char * input_item_GetNowPlayingFb | ( | input_item_t * | p_item | ) |
References input_item_GetMeta(), vlc_meta_ESNowPlaying, and vlc_meta_NowPlaying.
Referenced by DisplayVoutTitle(), and vlc_strfplayer().
char * input_item_GetTitleFbName | ( | input_item_t * | p_item | ) |
References EMPTY_STR, input_item_t::lock, input_item_t::p_meta, input_item_t::psz_name, strdup(), vlc_meta_Get(), vlc_meta_Title, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by vlc_strfplayer().
char * input_item_GetURI | ( | input_item_t * | p_i | ) |
References input_item_t::lock, input_item_t::psz_uri, strdup(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_item_WriteMeta(), and vlc_strfplayer().
input_item_t * input_item_Hold | ( | input_item_t * | p_item | ) |
Holds an input item, i.e.
creates a new reference.
References item_owner, input_item_owner::rc, and vlc_atomic_rc_inc().
Referenced by fingerprint_request_New(), input_Create(), input_item_node_Create(), on_children_added(), on_children_removed(), TaskNew(), TaskNew(), vlc_player_HoldCurrentMedia(), vlc_player_SetCurrentMedia(), vlc_player_SetNextMedia(), vlc_player_Start(), and vlc_playlist_item_New().
bool input_item_IsArtFetched | ( | input_item_t * | p_item | ) |
References ITEM_ART_FETCHED, input_item_t::lock, input_item_t::p_meta, vlc_meta_GetStatus(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_ExtractAttachmentAndCacheArt().
|
static |
References ARRAY_SIZE, bsearch_strcmp_cb(), MASTER_EXTENSIONS, and psz_ext.
Referenced by input_item_Playable(), and rdh_attach_slaves().
bool input_item_IsPreparsed | ( | input_item_t * | p_item | ) |
References ITEM_PREPARSED, input_item_t::lock, input_item_t::p_meta, vlc_meta_GetStatus(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by Init(), and vlc_playlist_AutoPreparse().
void input_item_MergeInfos | ( | input_item_t * | p_item, |
info_category_t * | p_cat | ||
) |
References input_item_t::categories, info_category_Delete(), info_category_ReplaceInfo(), info_foreach, info_category_t::infos, InputItemFindCat(), input_item_t::lock, info_category_t::node, info_category_t::psz_name, vlc_list_append(), vlc_list_init(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutProgramMeta().
bool input_item_MetaMatch | ( | input_item_t * | p_i, |
vlc_meta_type_t | meta_type, | ||
const char * | psz | ||
) |
References input_item_t::lock, input_item_t::p_meta, strcasestr(), vlc_meta_Get(), vlc_mutex_lock(), and vlc_mutex_unlock().
input_item_t * input_item_NewExt | ( | const char * | psz_uri, |
const char * | psz_name, | ||
vlc_tick_t | i_duration, | ||
enum input_item_type_e | i_type, | ||
enum input_item_net_type | i_net | ||
) |
This function creates a new input_item_t with the provided information.
XXX You may also use input_item_New, as they need less arguments.
References input_item_t::b_net, input_item_t::categories, input_item_t::es_vec, input_item_t::i_duration, input_item_t::i_epg, input_item_t::i_options, input_item_t::i_slaves, input_item_t::i_type, input_item_SetName(), input_item_SetURI(), input_item_owner::item, ITEM_NET, ITEM_NET_UNKNOWN, ITEM_TYPE_UNKNOWN, input_item_t::lock, input_item_t::opaques, input_item_t::optflagc, input_item_t::optflagv, input_item_t::p_meta, input_item_t::p_stats, input_item_t::pp_epg, input_item_t::pp_slaves, input_item_t::ppsz_options, input_item_t::psz_name, psz_name, input_item_t::psz_uri, input_item_owner::rc, TAB_INIT, unlikely, vlc_atomic_rc_init(), vlc_list_init(), vlc_meta_New(), vlc_mutex_init(), and vlc_vector_init.
Referenced by input_item_Copy(), rdh_unflatten(), and vlc_readdir_helper_additem().
input_item_node_t * input_item_node_AppendItem | ( | input_item_node_t * | p_node, |
input_item_t * | p_item | ||
) |
Add a new child node to this parent node that will point to this subitem.
References input_item_node_AppendNode(), and input_item_node_Create().
Referenced by rdh_unflatten(), and vlc_readdir_helper_additem().
void input_item_node_AppendNode | ( | input_item_node_t * | p_parent, |
input_item_node_t * | p_child | ||
) |
Add an already created node to children of this parent node.
References input_item_node_t::i_children, input_item_node_t::pp_children, and TAB_APPEND.
Referenced by input_item_node_AppendItem(), and vlc_media_tree_AddChild().
input_item_node_t * input_item_node_Create | ( | input_item_t * | p_input | ) |
Start adding multiple subitems.
Create a root node to hold a tree of subitems for given item
References input_item_node_t::i_children, input_item_Hold(), input_item_node_t::p_item, and input_item_node_t::pp_children.
Referenced by demux_Demux(), input_item_node_AppendItem(), and vlc_media_tree_AddChild().
void input_item_node_Delete | ( | input_item_node_t * | p_node | ) |
Delete a node created with input_item_node_Create() and all its children.
References input_item_node_t::i_children, input_item_node_Delete(), input_item_Release(), input_item_node_t::p_item, and input_item_node_t::pp_children.
Referenced by demux_Demux(), EsOutVaControlLocked(), input_item_node_Delete(), rdh_attach_slaves(), vlc_media_tree_ClearChildren(), and vlc_media_tree_Remove().
void input_item_node_RemoveNode | ( | input_item_node_t * | parent, |
input_item_node_t * | child | ||
) |
Remove a node from its parent.
References input_item_node_t::i_children, input_item_node_t::pp_children, and TAB_REMOVE.
Referenced by rdh_attach_slaves(), and vlc_media_tree_Remove().
bool input_item_Playable | ( | const char * | psz_filename | ) |
This function checks whether the input item is of a type that can be played.
It does this by checking the extension of the input item.
References input_item_IsMaster(), and input_item_slave_GetType().
void input_item_Release | ( | input_item_t * | p_item | ) |
Releases an input item, i.e.
decrements its reference counter.
References input_item_t::categories, input_item_es_vector::data, input_item_es::es, es_format_Clean(), input_item_t::es_vec, input_item_t::i_epg, input_item_t::i_options, input_item_t::i_slaves, input_item_es::id, info_category_Delete(), input_item_slave_Delete, item_owner, input_item_opaque::next, input_item_t::opaques, input_item_t::optflagv, input_item_t::p_meta, input_item_t::p_stats, input_item_t::pp_epg, input_item_t::pp_slaves, input_item_t::ppsz_options, input_item_t::psz_name, input_item_t::psz_uri, input_item_owner::rc, input_item_es_vector::size, TAB_CLEAN, vlc_atomic_rc_dec(), vlc_epg_Delete(), vlc_list_foreach, vlc_meta_Delete(), and vlc_vector_destroy.
Referenced by add_to_playlist(), callback_ctx_destroy_reports(), Destroy(), fingerprint_request_Delete(), input_item_node_Delete(), intf_InsertItem(), rdh_unflatten(), TaskDelete(), TaskDelete(), test_media_tree(), test_media_tree_callbacks(), test_media_tree_callbacks_on_add_listener(), vlc_player_Delete(), vlc_player_InvalidateNextMedia(), vlc_player_OpenNextMedia(), vlc_player_SetNextMedia(), vlc_playlist_item_Release(), vlc_readdir_helper_additem(), vlm_MediaInstanceDelete(), and vlm_MediaInstanceNew().
void input_item_ReplaceInfos | ( | input_item_t * | p_item, |
info_category_t * | p_cat | ||
) |
void input_item_SetArtFetched | ( | input_item_t * | p_i, |
bool | b_art_fetched | ||
) |
References ITEM_ART_FETCHED, input_item_t::lock, input_item_t::p_meta, vlc_meta_GetStatus(), vlc_meta_SetStatus(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by RunDownloader().
void input_item_SetArtNotFound | ( | input_item_t * | p_i, |
bool | b_not_found | ||
) |
References ITEM_ART_NOTFOUND, input_item_t::lock, input_item_t::p_meta, vlc_meta_GetStatus(), vlc_meta_SetStatus(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by RunSearchLocal(), and RunSearchNetwork().
void input_item_SetDuration | ( | input_item_t * | p_i, |
vlc_tick_t | i_duration | ||
) |
References input_item_t::i_duration, input_item_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by input_item_parser_InputEvent(), and input_thread_Events().
void input_item_SetEpg | ( | input_item_t * | p_item, |
const vlc_epg_t * | p_update, | ||
bool | b_current_source | ||
) |
References asprintf(), vlc_epg_t::b_present, vlc_epg_event_t::i_duration, input_item_t::i_epg, vlc_epg_t::i_event, vlc_epg_t::i_id, vlc_epg_t::i_source_id, vlc_epg_event_t::i_start, input_item_DelInfo(), localtime_r(), input_item_t::lock, input_item_t::p_epg_table, input_item_t::pp_epg, vlc_epg_t::pp_event, vlc_epg_event_t::psz_description, vlc_epg_event_t::psz_name, vlc_epg_t::psz_name, vlc_epg_event_t::psz_short_description, TAB_APPEND, vlc_epg_Delete(), vlc_epg_Duplicate(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutProgramEpg().
void input_item_SetEpgEvent | ( | input_item_t * | p_item, |
const vlc_epg_event_t * | p_epg_evt | ||
) |
void input_item_SetEpgOffline | ( | input_item_t * | p_item | ) |
References asprintf(), input_item_t::i_epg, input_item_ChangeEPGSource(), input_item_DelInfo(), input_item_t::lock, input_item_t::pp_epg, vlc_epg_t::psz_name, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutTerminate().
void input_item_SetEpgTime | ( | input_item_t * | p_item, |
int64_t | i_time | ||
) |
References input_item_t::i_epg_time, input_item_t::lock, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutEpgTime().
void input_item_SetMeta | ( | input_item_t * | p_i, |
vlc_meta_type_t | meta_type, | ||
const char * | psz_val | ||
) |
References input_item_t::lock, input_item_t::p_meta, vlc_meta_Set, vlc_mutex_lock(), and vlc_mutex_unlock().
void input_item_SetMetaExtra | ( | input_item_t * | p_i, |
const char * | psz_name, | ||
const char * | psz_value | ||
) |
References input_item_t::lock, input_item_t::p_meta, psz_name, psz_value, vlc_meta_SetExtra, vlc_mutex_lock(), and vlc_mutex_unlock().
void input_item_SetName | ( | input_item_t * | p_item, |
const char * | psz_name | ||
) |
References input_item_t::lock, input_item_t::psz_name, psz_name, strdup(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutMeta(), and input_item_NewExt().
void input_item_SetPreparsed | ( | input_item_t * | p_i | ) |
References ITEM_PREPARSED, input_item_t::lock, input_item_t::p_meta, vlc_meta_GetStatus(), vlc_meta_SetStatus(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by EsOutMeta(), and NotifyPreparseEnded().
void input_item_SetURI | ( | input_item_t * | p_i, |
const char * | psz_uri | ||
) |
References asprintf(), input_item_t::b_net, EnsureUTF8(), GuessType(), vlc_url_t::i_port, input_item_t::i_type, ITEM_TYPE_DIRECTORY, ITEM_TYPE_FILE, input_item_t::lock, vlc_url_t::psz_host, input_item_t::psz_name, vlc_url_t::psz_path, vlc_url_t::psz_protocol, input_item_t::psz_uri, strdup(), vlc_mutex_lock(), vlc_mutex_unlock(), vlc_uri_decode(), vlc_UrlClean(), and vlc_UrlParse().
Referenced by input_item_NewExt(), and vlm_ControlMediaInstanceStart().
bool input_item_slave_GetType | ( | const char * | psz_filename, |
enum slave_type * | p_slave_type | ||
) |
References ARRAY_SIZE, bsearch_strcmp_cb(), i_type, psz_ext, SLAVE_AUDIO_EXTENSIONS, SLAVE_SPU_EXTENSIONS, SLAVE_TYPE_GENERIC, and SLAVE_TYPE_SPU.
Referenced by DeduceSlaveType(), input_item_Playable(), rdh_attach_slaves(), and vlc_readdir_helper_additem().
input_item_slave_t * input_item_slave_New | ( | const char * | psz_uri, |
enum slave_type | i_type, | ||
enum slave_priority | i_priority | ||
) |
References input_item_slave::b_forced, input_item_slave::i_priority, input_item_slave::i_type, i_type, and input_item_slave::psz_uri.
Referenced by GetVarSlaves(), input_item_Copy(), LoadSlaves(), rdh_attach_slaves(), subtitles_Detect(), vlc_player_AddAssociatedMedia(), and vlc_readdir_helper_additem().
void input_item_UpdateTracksInfo | ( | input_item_t * | item, |
const es_format_t * | fmt, | ||
const char * | es_id, | ||
bool | es_id_stable | ||
) |
References input_item_es_vector::data, input_item_es::es, es_format_Clean(), es_format_Copy(), input_item_t::es_vec, input_item_es::id, input_item_es::id_stable, input_item_t::lock, input_item_es_vector::size, strdup(), vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_vector_push_hole.
Referenced by EsOutUpdateInfo().
|
static |
|
static |
|
static |
References input_item_node_t::i_children, input_item_slave::i_priority, vlc_readdir_helper::i_slaves, vlc_readdir_helper::i_sub_autodetect_fuzzy, input_item_slave::i_type, input_item_AddSlave(), input_item_IsMaster(), input_item_node_Delete(), input_item_node_RemoveNode(), input_item_slave_Delete, input_item_slave_GetType(), input_item_slave_New(), input_item_node_t::p_item, rdh_slave::p_node, rdh_slave::p_slave, input_item_node_t::pp_children, vlc_readdir_helper::pp_slaves, rdh_slave::psz_filename, input_item_t::psz_name, input_item_slave::psz_uri, rdh_attach_slaves(), rdh_get_slave_priority(), rdh_should_match_idx(), SLAVE_PRIORITY_MATCH_ALL, SLAVE_TYPE_SPU, and VLC_SUCCESS.
Referenced by rdh_attach_slaves(), and vlc_readdir_helper_finish().
|
static |
References input_item_t::psz_name, rdh_compar_type(), and vlc_filenamecmp().
Referenced by rdh_sort().
|
static |
References input_item_t::i_type, and ITEM_TYPE_DIRECTORY.
Referenced by rdh_compar_filename().
|
static |
Does the provided file name has one of the extension provided ?
Referenced by rdh_file_is_ignored().
|
static |
References vlc_readdir_helper::b_show_hiddenfiles, vlc_readdir_helper::psz_ignored_exts, and rdh_file_has_ext().
Referenced by vlc_readdir_helper_additem().
|
static |
|
static |
References psz_name, and strdup().
Referenced by rdh_get_slave_priority().
|
static |
References input_item_slave::i_priority, vlc_readdir_helper::i_slaves, rdh_slave::p_slave, vlc_readdir_helper::pp_slaves, psz_ext, rdh_slave::psz_filename, and strcasecmp().
Referenced by rdh_attach_slaves().
|
static |
References input_item_node_t::i_children, input_item_node_t::pp_children, rdh_compar_filename(), and rdh_sort().
Referenced by rdh_sort(), and vlc_readdir_helper_finish().
|
static |
References vlc_readdir_helper::i_dirs, INPUT_DURATION_UNSET, input_item_CopyOptions(), input_item_NewExt(), input_item_node_AppendItem(), input_item_Release(), INPUT_ITEM_URI_NOP, ITEM_TYPE_DIRECTORY, rdh_dir::p_node, vlc_readdir_helper::pp_dirs, rdh_dir::psz_path, TAB_APPEND, VLC_ENOMEM, and VLC_SUCCESS.
Referenced by vlc_readdir_helper_additem().
|
static |
References item_type_entry::psz_scheme.
Referenced by GuessType().
int vlc_readdir_helper_additem | ( | struct vlc_readdir_helper * | p_rdh, |
const char * | psz_uri, | ||
const char * | psz_flatpath, | ||
const char * | psz_filename, | ||
int | i_type, | ||
int | i_net, | ||
input_item_t **restrict | created_item | ||
) |
References vlc_readdir_helper::b_flatten, vlc_readdir_helper::i_slaves, vlc_readdir_helper::i_sub_autodetect_fuzzy, i_type, INPUT_DURATION_UNSET, input_item_CopyOptions(), input_item_NewExt(), input_item_node_AppendItem(), input_item_Release(), input_item_slave_GetType(), input_item_slave_New(), input_item_node_t::p_item, vlc_readdir_helper::p_node, rdh_slave::p_node, rdh_slave::p_slave, vlc_readdir_helper::pp_slaves, rdh_slave::psz_filename, rdh_file_is_ignored(), rdh_unflatten(), SLAVE_PRIORITY_MATCH_NONE, strdup(), TAB_APPEND, VLC_ENOMEM, and VLC_SUCCESS.
void vlc_readdir_helper_finish | ( | struct vlc_readdir_helper * | p_rdh, |
bool | b_success | ||
) |
Finish adding items to the node.
p_rdh | a readdir helper initialized with vlc_readdir_helper_init |
b_success | if true, items of the node will be sorted. |
References vlc_readdir_helper::i_dirs, vlc_readdir_helper::i_slaves, input_item_slave_Delete, vlc_readdir_helper::p_node, rdh_slave::p_slave, vlc_readdir_helper::pp_dirs, vlc_readdir_helper::pp_slaves, rdh_slave::psz_filename, vlc_readdir_helper::psz_ignored_exts, rdh_attach_slaves(), rdh_sort(), and TAB_CLEAN.
void vlc_readdir_helper_init | ( | struct vlc_readdir_helper * | p_rdh, |
vlc_object_t * | p_obj, | ||
input_item_node_t * | p_node | ||
) |
Init a vlc_readdir_helper struct.
p_rdh | need to be cleaned with vlc_readdir_helper_finish() |
p_obj | the VLC object to use for logging |
p_node | node that will be used to add items |
References vlc_readdir_helper::b_flatten, vlc_readdir_helper::b_show_hiddenfiles, vlc_readdir_helper::i_dirs, vlc_readdir_helper::i_slaves, vlc_readdir_helper::i_sub_autodetect_fuzzy, input_item_ApplyOptions(), input_item_node_t::p_item, vlc_readdir_helper::p_node, rdh_dir::p_node, vlc_readdir_helper::pp_dirs, vlc_readdir_helper::pp_slaves, vlc_readdir_helper::psz_ignored_exts, TAB_INIT, var_InheritBool(), var_InheritInteger(), var_InheritString(), vlc_object_create, and vlc_object_delete.