summaryrefslogtreecommitdiff
path: root/tools/gst-inspect.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-12-21 22:33:42 +0000
committerDavid Schleef <ds@schleef.org>2003-12-21 22:33:42 +0000
commit63ee736634654a4e40334d91bff146944d350100 (patch)
treef436eef505ffa63d2119d612dae87db8ad9f50d1 /tools/gst-inspect.c
parente1eb5e2d92cbe2d072c95837c031762af1cc8239 (diff)
downloadgstreamer-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 'tools/gst-inspect.c')
-rw-r--r--tools/gst-inspect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c
index 10366d72d1..11c54aed51 100644
--- a/tools/gst-inspect.c
+++ b/tools/gst-inspect.c
@@ -7,11 +7,11 @@
#include <string.h>
static void
-print_caps (const GstCaps2 *caps, const gchar *pfx)
+print_caps (const GstCaps *caps, const gchar *pfx)
{
char *s;
- s = gst_caps2_to_string (caps);
+ s = gst_caps_to_string (caps);
g_print ("%s%s\n", pfx, s);
g_free(s);
}
@@ -238,8 +238,8 @@ print_element_properties (GstElement *element)
if (param->value_type == GST_TYPE_URI) {
g_print("%-23.23s URI", "");
}
- if (param->value_type == GST_TYPE_CAPS2) {
- const GstCaps2 *caps = gst_value_get_caps (&value);
+ if (param->value_type == GST_TYPE_CAPS) {
+ const GstCaps *caps = gst_value_get_caps (&value);
if (!caps)
g_print("%-23.23s Caps (NULL)", "");