From: Matthew Waters Date: Wed, 5 Jun 2019 08:23:16 +0000 (+1000) Subject: tests/gl-launch-lines: gltestsrc works on gles2/opengl3 now X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ff2cfa97762d22b83f0fa169094cedc965e796c;p=platform%2Fupstream%2Fgst-plugins-base.git tests/gl-launch-lines: gltestsrc works on gles2/opengl3 now There's no need to feature gate the gltestsrc pipelines anymore --- diff --git a/tests/check/pipelines/gl-launch-lines.c b/tests/check/pipelines/gl-launch-lines.c index 14ed76e..f75ffa2 100644 --- a/tests/check/pipelines/gl-launch-lines.c +++ b/tests/check/pipelines/gl-launch-lines.c @@ -158,12 +158,10 @@ GST_START_TEST (test_glshader) GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#if GST_GL_HAVE_OPENGL s = "gltestsrc num-buffers=10 ! glshader ! fakesink"; run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#endif } GST_END_TEST @@ -177,58 +175,51 @@ GST_START_TEST (test_glfilterapp) GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#if GST_GL_HAVE_OPENGL s = "gltestsrc num-buffers=10 ! glfilterapp ! fakesink"; run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#endif } GST_END_TEST -#ifdef HAVE_PNG -#ifdef HAVE_JPEG -GST_START_TEST (test_gloverlay) +GST_START_TEST (test_glmosaic) { const gchar *s; GstState target_state = GST_STATE_PLAYING; - s = "videotestsrc num-buffers=10 ! glupload ! gloverlay ! fakesink"; + s = "videotestsrc num-buffers=10 ! glupload ! glmosaic ! fakesink"; run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#if GST_GL_HAVE_OPENGL - s = "gltestsrc num-buffers=10 ! gloverlay ! fakesink"; + s = "gltestsrc num-buffers=10 ! glmosaic ! fakesink"; run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#endif } GST_END_TEST -GST_START_TEST (test_glmosaic) +#ifdef HAVE_PNG +#ifdef HAVE_JPEG +GST_START_TEST (test_gloverlay) { const gchar *s; GstState target_state = GST_STATE_PLAYING; - s = "videotestsrc num-buffers=10 ! glupload ! glmosaic ! fakesink"; + s = "videotestsrc num-buffers=10 ! glupload ! gloverlay ! fakesink"; run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#if GST_GL_HAVE_OPENGL - s = "gltestsrc num-buffers=10 ! glmosaic ! fakesink"; + s = "gltestsrc num-buffers=10 ! gloverlay ! fakesink"; run_pipeline (setup_pipeline (s), s, GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING), GST_MESSAGE_UNKNOWN, target_state); -#endif } GST_END_TEST #endif #endif -#if GST_GL_HAVE_OPENGL #define N_SRCS 13 GST_START_TEST (test_gltestsrc) { @@ -247,6 +238,7 @@ GST_START_TEST (test_gltestsrc) GST_END_TEST #undef N_SRCS +#if GST_GL_HAVE_OPENGL GST_START_TEST (test_glfilterglass) { const gchar *s; @@ -344,8 +336,8 @@ gl_launch_lines_suite (void) tcase_add_test (tc_chain, test_gloverlay); #endif #endif -#if GST_GL_HAVE_OPENGL tcase_add_test (tc_chain, test_gltestsrc); +#if GST_GL_HAVE_OPENGL tcase_add_test (tc_chain, test_glfilterglass); /* tcase_add_test (tc_chain, test_glfilterreflectedscreen);*/ tcase_add_test (tc_chain, test_gldeinterlace);