[vlc-devel] commit: Qt: fix albumart on Win32. (Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Jul 7 01:53:27 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul  6 01:38:58 2009 +0200| [70e91fe2853bfaf0984a1f293ead18dcb5695004] | committer: Jean-Baptiste Kempf 

Qt: fix albumart on Win32.
(cherry picked from commit 1cc1d3ab74fac41f348d772d8685203b82577d0e)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70e91fe2853bfaf0984a1f293ead18dcb5695004
---

 modules/gui/qt4/input_manager.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index a41bb0b..f0e57d0 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -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://", "" );




More information about the vlc-devel mailing list