Commit f3abd242 authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣

Merge branch 'issue-73' into 'master'

jasper: Avoid a deprecation warning

Closes #73

See merge request GNOME/gdk-pixbuf!4
parents 58164dcd 7f41e0bb
......@@ -8,6 +8,8 @@ stages:
meson-fedora-x86_64:
image: registry.gitlab.gnome.org/gnome/gdk-pixbuf/master:v1
stage: build
variables:
BUILD_OPTS: "-Dpng=true -Djpeg=true -Dtiff=true -Djasper=true"
script:
- bash -x ./.gitlab/ci/test-docker.sh
artifacts:
......
......@@ -14,7 +14,7 @@ ccache --show-stats
# Disable ccache while running Meson, to avoid cached compiler tests
export CCACHE_DISABLE=true
meson ${builddir} ${srcdir} || exit $?
meson ${BUILD_OPTS} ${builddir} ${srcdir} || exit $?
unset CCACHE_DISABLE
cd ${builddir}
......
......@@ -67,7 +67,7 @@ jasper_image_begin_load (GdkPixbufModuleSizeFunc size_func,
jas_init ();
stream = jas_stream_memopen (NULL, -1);
stream = jas_stream_memopen (NULL, 0);
if (!stream) {
g_set_error_literal (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
_("Couldn’t allocate memory for stream"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment