summaryrefslogtreecommitdiffstats
path: root/ext/aalib
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2005-07-04 09:29:51 +0000
committerAndy Wingo <wingo@pobox.com>2005-07-04 09:29:51 +0000
commitaedfb1663da6fad0fd09b7e9a3e7dc69eadd5e26 (patch)
tree61b0d85623e885c9f73b0f425c7187b857593db6 /ext/aalib
parentdc26238905599571dc79a3f7a2f61e766be3d797 (diff)
ext/aalib/gstaasink.c (gst_aasink_fixate): Update for newer fixate prototype.
Original commit message from CVS: 2005-07-04 Andy Wingo <wingo@pobox.com> * ext/aalib/gstaasink.c (gst_aasink_fixate): Update for newer fixate prototype.
Diffstat (limited to 'ext/aalib')
-rw-r--r--ext/aalib/gstaasink.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c
index e452dd8d..3bd0c997 100644
--- a/ext/aalib/gstaasink.c
+++ b/ext/aalib/gstaasink.c
@@ -230,31 +230,16 @@ gst_aasink_class_init (GstAASinkClass * klass)
gstbasesink_class->render = GST_DEBUG_FUNCPTR (gst_aasink_render);
}
-static GstCaps *
+static void
gst_aasink_fixate (GstPad * pad, GstCaps * caps)
{
GstStructure *structure;
- GstCaps *newcaps;
-
- if (gst_caps_get_size (caps) > 1)
- return NULL;
- newcaps = gst_caps_copy (caps);
- structure = gst_caps_get_structure (newcaps, 0);
-
- if (gst_caps_structure_fixate_field_nearest_int (structure, "width", 320)) {
- return newcaps;
- }
- if (gst_caps_structure_fixate_field_nearest_int (structure, "height", 240)) {
- return newcaps;
- }
- if (gst_caps_structure_fixate_field_nearest_double (structure, "framerate",
- 30.0)) {
- return newcaps;
- }
+ structure = gst_caps_get_structure (caps, 0);
- gst_caps_unref (newcaps);
- return NULL;
+ gst_caps_structure_fixate_field_nearest_int (structure, "width", 320);
+ gst_caps_structure_fixate_field_nearest_int (structure, "height", 240);
+ gst_caps_structure_fixate_field_nearest_double (structure, "framerate", 30.0);
}
static gboolean