diff options
author | David Schleef <ds@schleef.org> | 2003-12-21 22:33:42 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-12-21 22:33:42 +0000 |
commit | 63ee736634654a4e40334d91bff146944d350100 (patch) | |
tree | f436eef505ffa63d2119d612dae87db8ad9f50d1 /testsuite/caps/string-conversions.c | |
parent | e1eb5e2d92cbe2d072c95837c031762af1cc8239 (diff) | |
download | gstreamer-CAPS.tar.gz |
Global change from "caps2" to "caps". Script is: #!/bin/sh find . -name '*.[chy]' -exec perl -i -p \CAPS-ENDCAPS
Original commit message from CVS:
Global change from "caps2" to "caps". Script is:
#!/bin/sh
find . -name '*.[chy]' -exec perl -i -p \
-e 's/gst_static_caps2_/gst_static_caps_/g;\
s/GST_CAPS2_/GST_CAPS_/g;\
s/gst_caps2_/gst_caps_/g;\
s/GstCaps2/GstCaps/g;\
s/GstStaticCaps2/GstStaticCaps/g;\
s/GST_STATIC_CAPS2_/GST_STATIC_CAPS_/g;\
s/GST_TYPE_CAPS2/GST_TYPE_CAPS/g;\
s/gst_caps_get_nth_cap/gst_caps_get_structure/g;\
s/gst_caps_get_n_structures/gst_caps_get_size/g;\
s/gst_caps_append_cap/gst_caps_append_structure/g;\
s/GST_CAPS2_/GST_CAPS_/g;' \
{} \;
Diffstat (limited to 'testsuite/caps/string-conversions.c')
-rw-r--r-- | testsuite/caps/string-conversions.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/testsuite/caps/string-conversions.c b/testsuite/caps/string-conversions.c index acb8b3a8e9..d94ee385d9 100644 --- a/testsuite/caps/string-conversions.c +++ b/testsuite/caps/string-conversions.c @@ -1,55 +1,55 @@ #include <gst/gst.h> #include <string.h> -GstStaticCaps2 caps1 = GST_STATIC_CAPS ( +GstStaticCaps caps1 = GST_STATIC_CAPS ( "video/mpeg, " "mpegtype=(int){1,2}" ); -GstStaticCaps2 caps2 = GST_STATIC_CAPS ( +GstStaticCaps caps2 = GST_STATIC_CAPS ( "video/mpeg, " "mpegtype=(int){1}" ); -GstStaticCaps2 caps3 = GST_STATIC_CAPS ( +GstStaticCaps caps3 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YV12\",\"YUY2\"}, " "width=(int)[16,4096], " "height=(int)[16,4096]" ); -GstStaticCaps2 caps4 = GST_STATIC_CAPS ( +GstStaticCaps caps4 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc)\"YV12\", " "height=(int)[16,256]" ); -GstStaticCaps2 caps5 = GST_STATIC_CAPS ( +GstStaticCaps caps5 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YV12\",\"YUY2\"}, " "height=(int)[16,4096]" ); -GstStaticCaps2 caps6 = GST_STATIC_CAPS ( +GstStaticCaps caps6 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YV12\",\"YUYV\"}, " "height=(int)[16,4096]" ); -GstStaticCaps2 caps7 = GST_STATIC_CAPS ( +GstStaticCaps caps7 = GST_STATIC_CAPS ( "video/raw, " "fourcc=(fourcc){\"YVYV\",\"YUY2\"}, " "height=(int)[16,4096]" ); -GstStaticCaps2 caps8 = GST_STATIC_CAPS ( +GstStaticCaps caps8 = GST_STATIC_CAPS ( "video/raw, " "format=(fourcc)\"I420\"; " "video/raw, " "format=(fourcc)\"YUYV\"" ); -GstStaticCaps2 caps9 = GST_STATIC_CAPS ( +GstStaticCaps caps9 = GST_STATIC_CAPS ( "video/raw, " "format=(fourcc)\"I420\"; " "video/raw, " @@ -70,19 +70,19 @@ static gint failures = 0; } \ }G_STMT_END static void -test_caps_func (const GstCaps2 *caps) +test_caps_func (const GstCaps *caps) { gchar *str1, *str2; gboolean ret = FALSE; - str1 = gst_caps2_to_string (caps); - caps = gst_caps2_from_string (str1); + str1 = gst_caps_to_string (caps); + caps = gst_caps_from_string (str1); if (!caps) { g_print ("%3d, INFO : no caps from %s\n", test, str1); TEST_END (ret); return; } - str2 = gst_caps2_to_string (caps); + str2 = gst_caps_to_string (caps); g_print ("%3d, INFO : %s <==> %s\n", test, str1, str2); ret = strcmp (str1, str2) == 0; g_free (str1); @@ -90,7 +90,7 @@ test_caps_func (const GstCaps2 *caps) TEST_END (ret); } static void -test_caps (const GstCaps2 *caps) +test_caps (const GstCaps *caps) { TEST_START; test_caps_func (caps); @@ -98,11 +98,11 @@ test_caps (const GstCaps2 *caps) static void test_string (gchar *str) { - GstCaps2 *caps; + GstCaps *caps; TEST_START; g_print ("%3d, INFO : checking %s\n", test, str); - caps = gst_caps2_from_string (str); + caps = gst_caps_from_string (str); if (!caps) { g_print ("%3d, INFO : no caps from %s\n", test, str); TEST_FAIL; @@ -113,11 +113,11 @@ test_string (gchar *str) static void test_string_fail (gchar *str) { - GstCaps2 *caps; + GstCaps *caps; TEST_START; g_print ("%3d, INFO : checking %s for failure\n", test, str); - caps = gst_caps2_from_string (str); + caps = gst_caps_from_string (str); g_print("got %p\n", caps); TEST_END (caps == NULL); } @@ -128,18 +128,18 @@ main (int argc, char *argv[]) goto bla; bla: /* stupidity tests */ - test_caps (gst_caps2_new_simple ("audio/raw", NULL)); + test_caps (gst_caps_new_simple ("audio/raw", NULL)); /* all sorts of caps */ - test_caps (gst_static_caps2_get (&caps1)); - test_caps (gst_static_caps2_get (&caps2)); - test_caps (gst_static_caps2_get (&caps3)); - test_caps (gst_static_caps2_get (&caps4)); - test_caps (gst_static_caps2_get (&caps5)); - test_caps (gst_static_caps2_get (&caps6)); - test_caps (gst_static_caps2_get (&caps7)); - test_caps (gst_static_caps2_get (&caps8)); - test_caps (gst_static_caps2_get (&caps9)); + test_caps (gst_static_caps_get (&caps1)); + test_caps (gst_static_caps_get (&caps2)); + test_caps (gst_static_caps_get (&caps3)); + test_caps (gst_static_caps_get (&caps4)); + test_caps (gst_static_caps_get (&caps5)); + test_caps (gst_static_caps_get (&caps6)); + test_caps (gst_static_caps_get (&caps7)); + test_caps (gst_static_caps_get (&caps8)); + test_caps (gst_static_caps_get (&caps9)); /* mime types */ test_string ("audio/raw"); |