1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}