mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
tests/examples/volume/volume.c: Fox if core was built without parsing support.
Original commit message from CVS: * tests/examples/volume/volume.c: Fox if core was built without parsing support. * tests/examples/seek/seek.c: Disable the parse_launch example if core was built without parsing support.
This commit is contained in:
parent
7ef45c9a7d
commit
8207acfae9
2 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2006-05-09 Edward Hervey <edward@fluendo.com>
|
2006-05-09 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* tests/examples/volume/volume.c:
|
||||||
|
Fox 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
|
||||||
support.
|
support.
|
||||||
|
|
|
@ -118,10 +118,19 @@ main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
||||||
GstElement *pipeline = NULL;
|
GstElement *pipeline = NULL;
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_PARSE
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
#endif
|
||||||
GstElement *volume;
|
GstElement *volume;
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
|
||||||
|
#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
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
||||||
|
@ -133,7 +142,7 @@ main (int argc, char *argv[])
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
volume = gst_bin_get_by_name (GST_BIN (pipeline), "volume0");
|
volume = gst_bin_get_by_name (GST_BIN (pipeline), "volume0");
|
||||||
if (volume == NULL) {
|
if (volume == NULL) {
|
||||||
g_print ("Please give a pipeline with a 'volume' element in it\n");
|
g_print ("Please give a pipeline with a 'volume' element in it\n");
|
||||||
|
|
Loading…
Reference in a new issue