summaryrefslogtreecommitdiff
path: root/extra/xine-ui/xine-ui-0.99.6-libpng15.patch
blob: 6a5fb5522bd72d4b26daea22bf2f3d62c3249fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: xine-ui-0.99.6/src/xitk/Imlib-light/load.c
===================================================================
--- xine-ui-0.99.6.orig/src/xitk/Imlib-light/load.c
+++ xine-ui-0.99.6/src/xitk/Imlib-light/load.c
@@ -61,7 +61,7 @@ unsigned char *_LoadPNG(ImlibData * id,
       png_destroy_read_struct(&png_ptr, NULL, NULL);
       return NULL;
     }
-  if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
+  if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
     {
       png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
       return NULL;