gl: fix build if libjpeg is not available
authorTim-Philipp Müller <tim@centricular.com>
Wed, 20 Dec 2017 16:01:38 +0000 (16:01 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 20 Dec 2017 16:01:38 +0000 (16:01 +0000)
If libjpeg is not available, leave HAVE_JPEG undefined in
config.h, instead of defining it to 0. Fixes mismatch between
autotools conditional and ifdefs in the code.

m4/gst-gl.m4

index f12ff7c290fca934e7e657bcb4cd6211a8f9a23c..fd28039352a70c578e755f811a9d297c32acf842 100644 (file)
@@ -1022,7 +1022,6 @@ fi
 if test x$HAVE_JPEG = xyes; then
   AC_DEFINE(HAVE_JPEG, [1], [Use libjpeg])
 else
-  AC_DEFINE(HAVE_JPEG, [0], [Use libjpeg])
   JPEG_LIBS=
 fi
 AC_SUBST(JPEG_LIBS)