videotestsrc: Fixate interlaced, chroma-site and color-matrix fields if necessary

This commit is contained in:
Sebastian Dröge 2010-05-22 10:05:40 +02:00
parent 258e519b49
commit e3285fb53d

View file

@ -300,6 +300,13 @@ gst_video_test_src_src_fixate (GstPad * pad, GstCaps * caps)
if (gst_structure_has_field (structure, "pixel-aspect-ratio"))
gst_structure_fixate_field_nearest_fraction (structure,
"pixel-aspect-ratio", 1, 1);
if (gst_structure_has_field (structure, "color-matrix"))
gst_structure_fixate_field_string (structure, "color-matrix", "sdtv");
if (gst_structure_has_field (structure, "chroma-site"))
gst_structure_fixate_field_string (structure, "chroma-site", "mpeg2");
if (gst_structure_has_field (structure, "interlaced"))
gst_structure_fixate_field_boolean (structure, "interlaced", FALSE);
}
static void