]> git.sesse.net Git - vlc/commitdiff
Qt: fix albumart on Win32.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 5 Jul 2009 23:38:58 +0000 (01:38 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 6 Jul 2009 23:53:20 +0000 (01:53 +0200)
(cherry picked from commit 1cc1d3ab74fac41f348d772d8685203b82577d0e)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/input_manager.cpp

index a41bb0b2048b8870ad71ac42fadf0e7703847390..f0e57d05dbed44c2454068edeffc639e92079124 100644 (file)
@@ -593,7 +593,11 @@ void InputManager::UpdateArt()
         char *psz_art = input_item_GetArtURL( input_GetItem( p_input ) );
         if( psz_art && !strncmp( psz_art, "file://", 7 ) &&
                 decode_URI( psz_art + 7 ) )
-            url = qfu( psz_art + 7);
+#ifdef WIN32
+            url = qfu( psz_art + 8 ); // Remove extra / starting on Win32.
+#else
+            url = qfu( psz_art + 7 );
+#endif
         free( psz_art );
 
         url = url.replace( "file://", "" );