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.
This commit is contained in:
Edward Hervey 2006-05-09 11:59:13 +00:00
parent 308f541bf4
commit c76e044d83
2 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-05-09 Edward Hervey <edward@fluendo.com>
* tests/icles/stress-xoverlay.c:
Fix if core was built without parsing support.
2006-05-09 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
@ -5,8 +10,9 @@
2006-05-09 Edward Hervey <edward@fluendo.com>
* 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

View file

@ -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);