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

git version control git at videolan.org
Mon Jul 6 01:40:20 CEST 2009


vlc | branch: 1.0-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul  6 01:38:58 2009 +0200| [1cc1d3ab74fac41f348d772d8685203b82577d0e] | committer: Jean-Baptiste Kempf 

Qt: fix albumart on Win32.

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

 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 1fc1f49..30c170e 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -592,7 +592,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 );
     }
 




More information about the vlc-devel mailing list