Commit a658df6d authored by Antoine Cellerier's avatar Antoine Cellerier

Fix searching in tree playlists (doesn't hide a node's children if the...

Fix searching in tree playlists (doesn't hide a node's children if the children match but the node doesn't). Thanks to zorglub for the fix.
parent 1839dc50
......@@ -100,12 +100,15 @@ int playlist_LiveSearchUpdate( playlist_t *p_playlist, playlist_item_t *p_root,
#define META_MATCHES( field ) ( p_item->p_input->p_meta && \
p_item->p_input->p_meta->psz_##field && \
strcasestr( p_item->p_input->p_meta->psz_##field, psz_string ) )
else
{
if( strcasestr( p_item->p_input->psz_name, psz_string ) ||
META_MATCHES( artist ) || META_MATCHES( album ) )
p_item->i_flags &= ~PLAYLIST_DBL_FLAG;
else
p_item->i_flags |= PLAYLIST_DBL_FLAG;
}
}
vlc_cond_signal( &p_playlist->object_wait );
return VLC_SUCCESS;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment