-int playlist_LiveSearchUpdate( playlist_t *p_playlist, playlist_item_t *p_root,
- const char *psz_string )
+/**
+ * Enable all items in the playlist
+ * @param p_root: the current root item
+ */
+static void playlist_LiveSearchClean( playlist_item_t *p_root )
+{
+ for( int i = 0; i < p_root->i_children; i++ )
+ {
+ playlist_item_t *p_item = p_root->pp_children[i];
+ if( p_item->i_children >= 0 )
+ playlist_LiveSearchClean( p_item );
+ p_item->i_flags &= ~PLAYLIST_DBL_FLAG;
+ }
+}
+
+
+/**
+ * Enable/Disable items in the playlist according to the search argument
+ * @param p_root: the current root item
+ * @param psz_string: the string to search
+ * @return true if an item match
+ */
+static bool playlist_LiveSearchUpdateInternal( playlist_item_t *p_root,
+ const char *psz_string )