VLC  3.0.15
Functions
search.c File Reference
Include dependency graph for search.c:

Functions

static void playlist_LiveSearchClean (playlist_item_t *p_root)
 Enable all items in the playlist. More...
 
static bool playlist_LiveSearchUpdateInternal (playlist_item_t *p_root, const char *psz_string, bool b_recursive)
 Enable/Disable items in the playlist according to the search argument. More...
 
int playlist_LiveSearchUpdate (playlist_t *p_playlist, playlist_item_t *p_root, const char *psz_string, bool b_recursive)
 Launch the recursive search in the playlist. More...
 

Function Documentation

◆ playlist_LiveSearchClean()

static void playlist_LiveSearchClean ( playlist_item_t p_root)
static

Enable all items in the playlist.

Parameters
p_rootthe current root item

References playlist_item_t::i_children, playlist_item_t::i_flags, PLAYLIST_DBL_FLAG, and playlist_item_t::pp_children.

Referenced by playlist_LiveSearchUpdate().

◆ playlist_LiveSearchUpdateInternal()

static bool playlist_LiveSearchUpdateInternal ( playlist_item_t p_root,
const char *  psz_string,
bool  b_recursive 
)
static

Enable/Disable items in the playlist according to the search argument.

Parameters
p_rootthe current root item
psz_stringthe string to search
Returns
true if an item match

References playlist_item_t::i_children, playlist_item_t::i_flags, input_item_t::lock, playlist_item_t::p_input, input_item_t::p_meta, PLAYLIST_DBL_FLAG, playlist_item_t::pp_children, input_item_t::psz_name, vlc_meta_Album, vlc_meta_Artist, vlc_meta_Get(), vlc_meta_Title, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_strcasestr().

Referenced by playlist_LiveSearchUpdate().