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:
David Schleef 2004-05-04 06:23:48 +00:00
parent cbafc0d49b
commit c3158814b5
5 changed files with 22 additions and 2 deletions

View file

@ -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>
* testsuite/caps/renegotiate.c: (my_fixate), (main): Another test.

View file

@ -29,13 +29,14 @@ main (int argc, char *argv[])
const char *srcdir = g_getenv ("srcdir");
if (srcdir) {
filename = g_build_filename (srcdir, "caps_strings");
filename = g_build_filename (srcdir, "caps_strings", NULL);
} else {
filename = g_strdup ("caps_strings");
}
}
if (!g_file_get_contents (filename, &data, &length, NULL)) {
g_print ("could not open file %s\n", filename);
abort ();
}

View file

@ -67,6 +67,12 @@ main (int argc, char *argv[])
"audio/x-raw-int, channels=2, rate=48000;"
"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));
while (list) {
GstElement *element = GST_ELEMENT (list->data);

View file

@ -29,13 +29,14 @@ main (int argc, char *argv[])
const char *srcdir = g_getenv ("srcdir");
if (srcdir) {
filename = g_build_filename (srcdir, "caps_strings");
filename = g_build_filename (srcdir, "caps_strings", NULL);
} else {
filename = g_strdup ("caps_strings");
}
}
if (!g_file_get_contents (filename, &data, &length, NULL)) {
g_print ("could not open file %s\n", filename);
abort ();
}

View file

@ -67,6 +67,12 @@ main (int argc, char *argv[])
"audio/x-raw-int, channels=2, rate=48000;"
"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));
while (list) {
GstElement *element = GST_ELEMENT (list->data);