build: fix check for GstJpegParser
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 9 Dec 2015 13:12:22 +0000 (14:12 +0100)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 19 Jan 2016 11:49:11 +0000 (12:49 +0100)
Right now the local JPEG parser is always compiled because the check for the
upstreamed version is broken: it looks for an non existent symbol:
GstJpegImage.

This patch changes that check for< GstJpegFrameHdr.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
configure.ac

index e29ada9..861b5cf 100644 (file)
@@ -367,7 +367,7 @@ AC_CACHE_CHECK([for JPEG parser],
     AC_COMPILE_IFELSE(
         [AC_LANG_PROGRAM(
             [[#include <gst/codecparsers/gstjpegparser.h>]],
-            [[GstJpegImage jpeg_image;]])],
+            [[GstJpegFrameHdr frame_hdr;]])],
         [ac_cv_have_gst_jpeg_parser="yes"],
         [ac_cv_have_gst_jpeg_parser="no"]
     )