]> git.sesse.net Git - vlc/commitdiff
Remove dummy test.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 14 Jun 2009 11:29:44 +0000 (13:29 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 15 Jun 2009 07:20:31 +0000 (09:20 +0200)
src/playlist/art.c

index 8b65121b48f777ff5c081875bd6bc5531931342b..131c248665a23b3c24c42f4eb1141404e7bdc71e 100644 (file)
@@ -167,9 +167,7 @@ int playlist_FindArtInCache( input_item_t *p_item )
         {
             char *psz_file;
             if( asprintf( &psz_file, "%s" DIR_SEP "%s",
-                          psz_path, psz_filename ) < 0 )
-                psz_file = NULL;
-            if( psz_file )
+                          psz_path, psz_filename ) != -1 )
             {
                 char *psz_uri = make_URI( psz_file );
                 if( psz_uri )