mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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:
parent
308f541bf4
commit
c76e044d83
2 changed files with 17 additions and 2 deletions
|
@ -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>
|
2006-05-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
|
* gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps):
|
||||||
|
@ -5,8 +10,9 @@
|
||||||
|
|
||||||
2006-05-09 Edward Hervey <edward@fluendo.com>
|
2006-05-09 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* tests/icles/stress-xoverlay.c:
|
||||||
* tests/examples/volume/volume.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:
|
* tests/examples/seek/seek.c:
|
||||||
Disable the parse_launch example if core was built without parsing
|
Disable the parse_launch example if core was built without parsing
|
||||||
|
|
|
@ -155,7 +155,10 @@ main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_PARSE
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
||||||
|
@ -166,12 +169,18 @@ main (int argc, char **argv)
|
||||||
g_print ("Example: %s \"videotestsrc ! ximagesink\"\n", argv[0]);
|
g_print ("Example: %s \"videotestsrc ! ximagesink\"\n", argv[0]);
|
||||||
return -1;
|
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);
|
pipeline = gst_parse_launch (argv[1], &error);
|
||||||
if (error) {
|
if (error) {
|
||||||
g_print ("Error while parsing pipeline description: %s\n", error->message);
|
g_print ("Error while parsing pipeline description: %s\n", error->message);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
loop = g_main_loop_new (NULL, FALSE);
|
loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue