summaryrefslogtreecommitdiffstats
path: root/ext/aalib
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-11-22 20:07:47 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2005-11-22 20:07:47 +0000
commitdad9986cb4646c0090a9c8408c1a1d9e00869ae2 (patch)
tree6ebc973d0760c05eadf9fff29898938f1c54d831 /ext/aalib
parent842a43f80230c65d024a5859c6b67dc601e7de64 (diff)
Convert to fractional framerates.
Original commit message from CVS: * ext/aalib/gstaasink.c: (gst_aasink_fixate): * gst/debug/gstnavigationtest.c: (gst_navigationtest_handle_src_event): * gst/videofilter/gstvideofilter.c: (gst_videofilter_format_get_structure), (gst_videofilter_setcaps), (gst_videofilter_init): * gst/videofilter/gstvideofilter.h: Convert to fractional framerates.
Diffstat (limited to 'ext/aalib')
-rw-r--r--ext/aalib/gstaasink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/aalib/gstaasink.c b/ext/aalib/gstaasink.c
index 4a7b09e0..42ac0233 100644
--- a/ext/aalib/gstaasink.c
+++ b/ext/aalib/gstaasink.c
@@ -236,12 +236,17 @@ static void
gst_aasink_fixate (GstPad * pad, GstCaps * caps)
{
GstStructure *structure;
+ GValue fps = { 0 };
structure = gst_caps_get_structure (caps, 0);
gst_structure_fixate_field_nearest_int (structure, "width", 320);
gst_structure_fixate_field_nearest_int (structure, "height", 240);
- gst_structure_fixate_field_nearest_double (structure, "framerate", 30.0);
+
+ g_value_init (&fps, GST_TYPE_FRACTION);
+ gst_value_set_fraction (&fps, 30, 1);
+ gst_structure_fixate_field_nearest_fraction (structure, "framerate", &fps);
+ g_value_unset (&fps);
}
static gboolean