1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: apps/plugins/pictureflow/pictureflow.c
===================================================================
--- apps/plugins/pictureflow/pictureflow.c  (Revision 21038)
+++ apps/plugins/pictureflow/pictureflow.c  (Arbeitskopie)
@@ -906,9 +906,14 @@
         struct mp3entry id3;
         int fd;

-        fd = rb->open(tcs.result, O_RDONLY);
-        rb->get_metadata(&id3, fd, tcs.result);
-        rb->close(fd);
+#if defined(HAVE_TC_RAMCACHE) && defined(HAVE_DIRCACHE)
+        if (!rb->tagcache_fill_tags(&id3, tcs.result)
+#endif
+        {
+            fd = rb->open(tcs.result, O_RDONLY);
+            rb->get_metadata(&id3, fd, tcs.result);
+            rb->close(fd);
+        }
         if ( search_albumart_files(&id3, "", buf, buflen) )
             result = true;
         else