]> git.sesse.net Git - vlc/commitdiff
Qt Jpeg support on Windows.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 11 Sep 2008 20:12:57 +0000 (13:12 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 12 Sep 2008 00:13:24 +0000 (17:13 -0700)
This is a support to statically link jpeg plugin on windows to the plugin in order to make Qt read jpeg files (needed for album art).
This of course, will increase the binary size, but since dionoea is lazy and doesn't want to make easily conversion from jpeg to png|xpm|bmp, here we go. :D
Better solution should be found on master.
(cherry picked from commit 74ca61b171fa7d724cb640a0009f519885da29f0)

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

index 5abd56973abd4b940567e9ffddf66125139d2ee1..38e2cf6a21a10ac620e5cab5a4ef984fb4fbd020 100644 (file)
 #include "../../../share/vlc32x32-christmas.xpm"
 #include <vlc_plugin.h>
 
+#ifdef WIN32
+ #include <QtPlugin>
+ Q_IMPORT_PLUGIN(qjpeg)
+#endif
+
 /*****************************************************************************
  * Local prototypes.
  *****************************************************************************/