From 8284d0d3a2911a9ef9667aa52f0fd42e4c93405f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sun, 21 Dec 2003 23:24:38 +0000 Subject: Global change from "caps2" to "caps" Original commit message from CVS: Global change from "caps2" to "caps" --- gst/speed/gstspeed.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gst/speed/gstspeed.c') diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c index c3d4d7b7..ec094156 100644 --- a/gst/speed/gstspeed.c +++ b/gst/speed/gstspeed.c @@ -84,7 +84,7 @@ static void speed_init (GstSpeed *filter); static void speed_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec); static void speed_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec); -static gboolean speed_parse_caps (GstSpeed *filter, const GstCaps2 *caps); +static gboolean speed_parse_caps (GstSpeed *filter, const GstCaps *caps); static void speed_loop (GstElement *element); @@ -92,7 +92,7 @@ static GstElementClass *parent_class = NULL; /*static guint gst_filter_signals[LAST_SIGNAL] = { 0 }; */ static GstPadLinkReturn -speed_link (GstPad *pad, const GstCaps2 *caps) +speed_link (GstPad *pad, const GstCaps *caps) { GstSpeed *filter; GstPad *otherpad; @@ -108,7 +108,7 @@ speed_link (GstPad *pad, const GstCaps2 *caps) } static gboolean -speed_parse_caps (GstSpeed *filter, const GstCaps2 *caps) +speed_parse_caps (GstSpeed *filter, const GstCaps *caps) { const gchar *mimetype; GstStructure *structure; @@ -117,7 +117,7 @@ speed_parse_caps (GstSpeed *filter, const GstCaps2 *caps) g_return_val_if_fail(filter != NULL, FALSE); g_return_val_if_fail(caps != NULL, FALSE); - structure = gst_caps2_get_nth_cap (caps, 0); + structure = gst_caps_get_structure (caps, 0); ret = gst_structure_get_int (structure, "rate", &filter->rate); ret &= gst_structure_get_int (structure, "channels", &filter->channels); -- cgit v1.2.1