diff options
author | David Schleef <ds@schleef.org> | 2003-12-21 23:24:38 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2003-12-21 23:24:38 +0000 |
commit | 8284d0d3a2911a9ef9667aa52f0fd42e4c93405f (patch) | |
tree | 5fa53a115231b29afd0bc832f9c32afdd8dd51c7 /gst/smpte | |
parent | 26da56b423a834192f5edf413c3cb1be257f845a (diff) | |
download | gst-plugins-bad-8284d0d3a2911a9ef9667aa52f0fd42e4c93405f.tar.gz gst-plugins-bad-8284d0d3a2911a9ef9667aa52f0fd42e4c93405f.tar.bz2 gst-plugins-bad-8284d0d3a2911a9ef9667aa52f0fd42e4c93405f.zip |
Original commit message from CVS:
Global change from "caps2" to "caps"
Diffstat (limited to 'gst/smpte')
-rw-r--r-- | gst/smpte/gstsmpte.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c index ebd5d3f1..fffc4caa 100644 --- a/gst/smpte/gstsmpte.c +++ b/gst/smpte/gstsmpte.c @@ -230,7 +230,7 @@ gst_smpte_update_mask (GstSMPTE *smpte, gint type, gint depth, gint width, gint } static gboolean -gst_smpte_sinkconnect (GstPad *pad, const GstCaps2 *caps) +gst_smpte_sinkconnect (GstPad *pad, const GstCaps *caps) { GstSMPTE *smpte; GstStructure *structure; @@ -238,7 +238,7 @@ gst_smpte_sinkconnect (GstPad *pad, const GstCaps2 *caps) smpte = GST_SMPTE (gst_pad_get_parent (pad)); - structure = gst_caps2_get_nth_cap (caps, 0); + structure = gst_caps_get_structure (caps, 0); ret = gst_structure_get_int (structure, "width", &smpte->width); ret &= gst_structure_get_int (structure, "height", &smpte->height); @@ -362,10 +362,10 @@ gst_smpte_loop (GstElement *element) outbuf = gst_buffer_new_and_alloc (smpte->width * smpte->height * 3); if (!GST_PAD_CAPS (smpte->srcpad)) { - GstCaps2 *caps; - caps = gst_caps2_copy (gst_static_caps2_get ( + GstCaps *caps; + caps = gst_caps_copy (gst_static_caps_get ( &gst_smpte_src_template.static_caps)); - gst_caps2_set_simple (caps, + gst_caps_set_simple (caps, "width", G_TYPE_INT, smpte->width, "height", G_TYPE_INT, smpte->height, "framerate", G_TYPE_DOUBLE, smpte->fps, NULL); |