From c76e044d83e45a044217d9065f526a605fd0ba2e Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 9 May 2006 11:59:13 +0000 Subject: [PATCH] tests/icles/stress-xoverlay.c: Fix if core was built without parsing support. Original commit message from CVS: * tests/icles/stress-xoverlay.c: Fix if core was built without parsing support. --- ChangeLog | 8 +++++++- tests/icles/stress-xoverlay.c | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7a4fbad3c..d7c9b8394c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-05-09 Edward Hervey + + * tests/icles/stress-xoverlay.c: + Fix if core was built without parsing support. + 2006-05-09 Tim-Philipp Müller * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps): @@ -5,8 +10,9 @@ 2006-05-09 Edward Hervey + * tests/icles/stress-xoverlay.c: * tests/examples/volume/volume.c: - Fox if core was built without parsing support. + Fix if core was built without parsing support. * tests/examples/seek/seek.c: Disable the parse_launch example if core was built without parsing diff --git a/tests/icles/stress-xoverlay.c b/tests/icles/stress-xoverlay.c index 76c76fa445..b26bb993ff 100644 --- a/tests/icles/stress-xoverlay.c +++ b/tests/icles/stress-xoverlay.c @@ -155,7 +155,10 @@ main (int argc, char **argv) { GstElement *pipeline; GstBus *bus; + +#ifndef GST_DISABLE_PARSE GError *error = NULL; +#endif gst_init (&argc, &argv); @@ -166,12 +169,18 @@ main (int argc, char **argv) g_print ("Example: %s \"videotestsrc ! ximagesink\"\n", argv[0]); return -1; } - +#ifdef GST_DISABLE_PARSE + g_print ("GStreamer was built without pipeline parsing capabilities.\n"); + g_print + ("Please rebuild GStreamer with pipeline parsing capabilities activated to use this example.\n"); + return 1; +#else pipeline = gst_parse_launch (argv[1], &error); if (error) { g_print ("Error while parsing pipeline description: %s\n", error->message); return -1; } +#endif loop = g_main_loop_new (NULL, FALSE);