Commit f38bff62 authored by Andy Wingo Wingo's avatar Andy Wingo Wingo
Browse files

sys/v4l/gstv4lsrc.c (gst_v4lsrc_fixate): Also fixate the framerate. Need to...

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  <wingo@pobox.com>

* sys/v4l/gstv4lsrc.c (gst_v4lsrc_fixate): Also fixate the
framerate. Need to get a handle on when exactly this function is
called, tho.
parent 84761c6a
2005-07-07 Andy Wingo <wingo@pobox.com>
 
* 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.
......
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment