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 /tests/old/testsuite/elements | |
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 'tests/old/testsuite/elements')
-rw-r--r-- | tests/old/testsuite/elements/tee.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/old/testsuite/elements/tee.c b/tests/old/testsuite/elements/tee.c index 3faf35401b..2c803931ea 100644 --- a/tests/old/testsuite/elements/tee.c +++ b/tests/old/testsuite/elements/tee.c @@ -42,8 +42,8 @@ main (int argc, char *argv[]) GstElement *pipeline = NULL; GstElement *tee, *src, *sink1, *sink2; GstPad *tee_src1, *tee_src2; - GstCaps2 *src_caps = NULL; - GstCaps2 *sink_caps = NULL; + GstCaps *src_caps = NULL; + GstCaps *sink_caps = NULL; GstStructure *structure = NULL; GstPad *pad = NULL; @@ -99,7 +99,7 @@ main (int argc, char *argv[]) /* now we try setting caps on the src pad */ /* FIXME: should we set to pause here ? */ - src_caps = gst_caps2_from_string ("audio/raw, format=(s)\"int\", " + src_caps = gst_caps_from_string ("audio/raw, format=(s)\"int\", " "rate=(i)44100"); g_assert (src_caps != NULL); @@ -112,8 +112,8 @@ main (int argc, char *argv[]) /* now iterate and see if it proxies caps ok */ gst_bin_iterate (GST_BIN (pipeline)); sink_caps = gst_pad_get_caps (gst_element_get_pad (sink1, "sink")); - if (sink_caps && gst_caps2_is_fixed (sink_caps)) { - structure = gst_caps2_get_nth_cap (sink_caps, 0); + if (sink_caps && gst_caps_is_fixed (sink_caps)) { + structure = gst_caps_get_structure (sink_caps, 0); }else { structure = NULL; g_print ("sink_caps is not fixed\n"); @@ -127,7 +127,7 @@ main (int argc, char *argv[]) g_print ("Rate of pad on sink1 : %d\n", rate); } sink_caps = gst_pad_get_caps (gst_element_get_pad (sink2, "sink")); - structure = gst_caps2_get_nth_cap (sink_caps, 0); + structure = gst_caps_get_structure (sink_caps, 0); if (structure != NULL && ! (gst_structure_has_field (structure, "rate"))) { g_print ("Hm, rate has not been propagated to sink2.\n"); return 1; |