]> git.sesse.net Git - vlc/blobdiff - modules/meta_engine/folder.c
Transrate removed in 1.0.2 already
[vlc] / modules / meta_engine / folder.c
index ae0091d4e2fac38d6e1afebc0c57fc341fc23c12..fbb96190ca070aa59a16a5dda91dcc1289313d58 100644 (file)
@@ -32,6 +32,7 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_playlist.h>
+#include <vlc_art_finder.h>
 #include <vlc_charset.h>
 #include <vlc_url.h>
 
@@ -74,7 +75,8 @@ vlc_module_end ()
  *****************************************************************************/
 static int FindMeta( vlc_object_t *p_this )
 {
-    input_item_t *p_item = (input_item_t *)p_this->p_private;
+    art_finder_t *p_finder = (art_finder_t *)p_this;
+    input_item_t *p_item = p_finder->p_item;
     bool b_have_art = false;
 
     int i;
@@ -111,7 +113,7 @@ static int FindMeta( vlc_object_t *p_this )
     {
         if( i == -1 ) /* higher priority : configured filename */
         {
-            char *psz_userfile = config_GetPsz( p_this, "filename" );
+            char *psz_userfile = config_GetPsz( p_this, "album-art-filename" );
             if( !psz_userfile )
                 continue;
             snprintf( psz_filename, MAX_PATH, "%s%s", psz_path, psz_userfile );