char* get_album_name(const int slide_index)
{
if (album_name_index != slide_index)
{
if (!rb->tagcache_search(&tcs, tag_album))
album_name[0] = 0;
else
{
rb->tagcache_search_add_filter(&tcs, tag_album,
album[slide_index]);
if (rb->tagcache_get_next(&tcs))
rb->strcpy(album_name, tcs.result);
else
album_name[0] = 0;
rb->tagcache_search_finish(&tcs);
}
album_name_index = slide_index;
}
return album_name;
}