]> git.sesse.net Git - vlc/commitdiff
input/meta.c: Fix crashy-warnings thanks to courmisch.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 21 Aug 2007 17:43:54 +0000 (17:43 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 21 Aug 2007 17:43:54 +0000 (17:43 +0000)
src/input/meta.c

index 7a98b5601f26e70ca8a1b35da28cd0dabea17bbd..280b2936e1e3d449198e44cbd2754378f37c1753 100644 (file)
@@ -124,6 +124,7 @@ int input_ArtFind( playlist_t *p_playlist, input_item_t *p_item )
         return VLC_EGENERIC;
 
     psz_artist = input_item_GetArtist( p_item );
+    psz_album = input_item_GetAlbum( p_item );
     psz_title = input_item_GetTitle( p_item );
     if(!psz_title)
         psz_title = input_item_GetName( p_item );
@@ -350,7 +351,7 @@ static int __input_FindArtInCache( vlc_object_t *p_obj, input_item_t *p_item )
     if( !p_dir )
         return VLC_EGENERIC;
 
-    while( (p_de = utf8_readdir( p_dir )) )
+    while( (p_de = utf8_readdir( psz_dirname )) )
     {
         if( strncmp( p_de->d_name, "art", 3 ) )
         {