From c94c0ad834265feaf077a1ac4d4162f7e5c48eef Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 26 Jul 2016 17:01:55 +0100 Subject: [PATCH] tests: fix simple-launch-lines when jpeg lib isn't present JPEG detection in configure.ac defines HAVE_JPEG to 0 if the jpeg lib isn't found, rather then not defining it. https://bugzilla.gnome.org/show_bug.cgi?id=769197 --- tests/check/pipelines/simple-launch-lines.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/check/pipelines/simple-launch-lines.c b/tests/check/pipelines/simple-launch-lines.c index 5cfc98c70a..f03fc94b56 100644 --- a/tests/check/pipelines/simple-launch-lines.c +++ b/tests/check/pipelines/simple-launch-lines.c @@ -188,6 +188,8 @@ GST_START_TEST (test_glfilterapp) } GST_END_TEST +#ifdef HAVE_PNG +#if HAVE_JPEG GST_START_TEST (test_gloverlay) { const gchar *s; @@ -207,6 +209,8 @@ GST_START_TEST (test_gloverlay) } GST_END_TEST +#endif +#endif #if GST_GL_HAVE_OPENGL #define N_SRCS 13 GST_START_TEST (test_gltestsrc) @@ -333,7 +337,7 @@ simple_launch_lines_suite (void) tcase_add_test (tc_chain, test_glshader); tcase_add_test (tc_chain, test_glfilterapp); #ifdef HAVE_PNG -#ifdef HAVE_JPEG +#if HAVE_JPEG tcase_add_test (tc_chain, test_gloverlay); #endif #endif @@ -346,7 +350,7 @@ simple_launch_lines_suite (void) #ifdef HAVE_PNG tcase_add_test (tc_chain, test_gldifferencematte); /* tcase_add_test (tc_chain, test_glbumper);*/ -#ifdef HAVE_JPEG +#if HAVE_JPEG #endif /* HAVE_JPEG */ #endif /* HAVE_PNG */ #endif /* GST_GL_HAVE_OPENGL */