summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndreas Frisch <fraxinas@dreambox.guru>2017-10-19 18:23:34 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-10-20 09:31:31 +0200
commit5615ec59c4dd0fae7eab5f9a6967646ac87b8ac8 (patch)
tree53a4b6d85e84c547cd96d75244e1d63faef6fc9e /ext
parent9fd988170ac4631565434d91ee8f4b4e3eccf30d (diff)
pngdec: fix build with libpng versions between 1.2 and 1.5.1
https://bugzilla.gnome.org/show_bug.cgi?id=765927
Diffstat (limited to 'ext')
-rw-r--r--ext/libpng/gstpngdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/libpng/gstpngdec.c b/ext/libpng/gstpngdec.c
index acadf5437..581e3a9f4 100644
--- a/ext/libpng/gstpngdec.c
+++ b/ext/libpng/gstpngdec.c
@@ -341,7 +341,7 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
}
gst_video_codec_state_unref (pngdec->output_state);
}
-
+#ifdef HAVE_LIBPNG_1_5
if ((pngdec->color_type & PNG_COLOR_MASK_COLOR)
&& !(pngdec->color_type & PNG_COLOR_MASK_PALETTE)
&& png_get_valid (pngdec->png, pngdec->info, PNG_INFO_iCCP)) {
@@ -386,6 +386,7 @@ gst_pngdec_caps_create_and_set (GstPngDec * pngdec)
gst_tag_list_unref (taglist);
}
}
+#endif
pngdec->output_state =
gst_video_decoder_set_output_state (GST_VIDEO_DECODER (pngdec), format,