videotestsrc: Fixate PAR to 1/1 if possible

This commit is contained in:
Sebastian Dröge 2010-05-11 16:12:49 +02:00
parent 8ea2e94a7d
commit 1990364816

View file

@ -297,6 +297,9 @@ gst_video_test_src_src_fixate (GstPad * pad, GstCaps * caps)
gst_structure_fixate_field_nearest_int (structure, "width", 320);
gst_structure_fixate_field_nearest_int (structure, "height", 240);
gst_structure_fixate_field_nearest_fraction (structure, "framerate", 30, 1);
if (gst_structure_has_field (structure, "pixel-aspect-ratio"))
gst_structure_fixate_field_nearest_fraction (structure,
"pixel-aspect-ratio", 1, 1);
}
static void