From f38bff62af57f0f5e20c770ee77d9fabb766c2ac Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Thu, 7 Jul 2005 14:01:07 +0000 Subject: [PATCH] sys/v4l/gstv4lsrc.c (gst_v4lsrc_fixate): Also fixate the framerate. Need to get a handle on when exactly this functio... Original commit message from CVS: 2005-07-07 Andy Wingo * sys/v4l/gstv4lsrc.c (gst_v4lsrc_fixate): Also fixate the framerate. Need to get a handle on when exactly this function is called, tho. --- ChangeLog | 4 ++++ sys/v4l/gstv4lsrc.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2f9e4d8..0d10403 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-07-07 Andy Wingo + * sys/v4l/gstv4lsrc.c (gst_v4lsrc_fixate): Also fixate the + framerate. Need to get a handle on when exactly this function is + called, tho. + * sys/v4l/v4lsrc_calls.h: * sys/v4l/v4lsrc_calls.c: Remove sync-related stuff. (gst_v4lsrc_get_fps_list): Moved here from gstv4lsrc.c. diff --git a/sys/v4l/gstv4lsrc.c b/sys/v4l/gstv4lsrc.c index adcffb9..e1071cc 100644 --- a/sys/v4l/gstv4lsrc.c +++ b/sys/v4l/gstv4lsrc.c @@ -187,7 +187,8 @@ gst_v4lsrc_get_property (GObject * object, } } -G_GNUC_UNUSED static void +/* this function is a bit of a last resort */ +static void gst_v4lsrc_fixate (GstPad * pad, GstCaps * caps) { GstStructure *structure; @@ -224,6 +225,8 @@ gst_v4lsrc_fixate (GstPad * pad, GstCaps * caps) targetwidth); gst_caps_structure_fixate_field_nearest_int (structure, "height", targetheight); + gst_caps_structure_fixate_field_nearest_double (structure, "framerate", + 7.5); } } -- 2.7.4