mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
videotestsrc: Fixate interlaced, chroma-site and color-matrix fields if necessary
This commit is contained in:
parent
258e519b49
commit
e3285fb53d
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue