mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
testsuite/caps/deserialize.c: Fix problems noticed by the build bots.
Original commit message from CVS: * testsuite/caps/deserialize.c: (main): Fix problems noticed by the build bots. * testsuite/caps/renegotiate.c: (main): Same.
This commit is contained in:
parent
cbafc0d49b
commit
c3158814b5
5 changed files with 22 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-05-03 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* testsuite/caps/deserialize.c: (main): Fix problems noticed
|
||||||
|
by the build bots.
|
||||||
|
* testsuite/caps/renegotiate.c: (main): Same.
|
||||||
|
|
||||||
2004-05-03 David Schleef <ds@schleef.org>
|
2004-05-03 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* testsuite/caps/renegotiate.c: (my_fixate), (main): Another test.
|
* testsuite/caps/renegotiate.c: (my_fixate), (main): Another test.
|
||||||
|
|
|
@ -29,13 +29,14 @@ main (int argc, char *argv[])
|
||||||
const char *srcdir = g_getenv ("srcdir");
|
const char *srcdir = g_getenv ("srcdir");
|
||||||
|
|
||||||
if (srcdir) {
|
if (srcdir) {
|
||||||
filename = g_build_filename (srcdir, "caps_strings");
|
filename = g_build_filename (srcdir, "caps_strings", NULL);
|
||||||
} else {
|
} else {
|
||||||
filename = g_strdup ("caps_strings");
|
filename = g_strdup ("caps_strings");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_file_get_contents (filename, &data, &length, NULL)) {
|
if (!g_file_get_contents (filename, &data, &length, NULL)) {
|
||||||
|
g_print ("could not open file %s\n", filename);
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,12 @@ main (int argc, char *argv[])
|
||||||
"audio/x-raw-int, channels=2, rate=48000;"
|
"audio/x-raw-int, channels=2, rate=48000;"
|
||||||
"audio/x-raw-int, channels=1, rate=44100 !" "fakesink", NULL);
|
"audio/x-raw-int, channels=1, rate=44100 !" "fakesink", NULL);
|
||||||
|
|
||||||
|
if (pipeline == NULL) {
|
||||||
|
g_print
|
||||||
|
("oops, couldn't build pipeline. You probably don't have audioconvert or sinesrc\n");
|
||||||
|
exit (0);
|
||||||
|
}
|
||||||
|
|
||||||
list = gst_bin_get_list (GST_BIN (pipeline));
|
list = gst_bin_get_list (GST_BIN (pipeline));
|
||||||
while (list) {
|
while (list) {
|
||||||
GstElement *element = GST_ELEMENT (list->data);
|
GstElement *element = GST_ELEMENT (list->data);
|
||||||
|
|
|
@ -29,13 +29,14 @@ main (int argc, char *argv[])
|
||||||
const char *srcdir = g_getenv ("srcdir");
|
const char *srcdir = g_getenv ("srcdir");
|
||||||
|
|
||||||
if (srcdir) {
|
if (srcdir) {
|
||||||
filename = g_build_filename (srcdir, "caps_strings");
|
filename = g_build_filename (srcdir, "caps_strings", NULL);
|
||||||
} else {
|
} else {
|
||||||
filename = g_strdup ("caps_strings");
|
filename = g_strdup ("caps_strings");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_file_get_contents (filename, &data, &length, NULL)) {
|
if (!g_file_get_contents (filename, &data, &length, NULL)) {
|
||||||
|
g_print ("could not open file %s\n", filename);
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,12 @@ main (int argc, char *argv[])
|
||||||
"audio/x-raw-int, channels=2, rate=48000;"
|
"audio/x-raw-int, channels=2, rate=48000;"
|
||||||
"audio/x-raw-int, channels=1, rate=44100 !" "fakesink", NULL);
|
"audio/x-raw-int, channels=1, rate=44100 !" "fakesink", NULL);
|
||||||
|
|
||||||
|
if (pipeline == NULL) {
|
||||||
|
g_print
|
||||||
|
("oops, couldn't build pipeline. You probably don't have audioconvert or sinesrc\n");
|
||||||
|
exit (0);
|
||||||
|
}
|
||||||
|
|
||||||
list = gst_bin_get_list (GST_BIN (pipeline));
|
list = gst_bin_get_list (GST_BIN (pipeline));
|
||||||
while (list) {
|
while (list) {
|
||||||
GstElement *element = GST_ELEMENT (list->data);
|
GstElement *element = GST_ELEMENT (list->data);
|
||||||
|
|
Loading…
Reference in a new issue