summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-05-22 10:05:40 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-05-22 10:05:40 +0200
commite3285fb53dbd6aa5dffb476030a0e6d1d5de8c8a (patch)
tree38e78bd50c9390cb6dfe38d72142a5b22fbcc897
parent258e519b49326f3eb81f644922ba9b84909e4852 (diff)
videotestsrc: Fixate interlaced, chroma-site and color-matrix fields if necessary
-rw-r--r--gst/videotestsrc/gstvideotestsrc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c
index 30c138acb..15292c8f5 100644
--- a/gst/videotestsrc/gstvideotestsrc.c
+++ b/gst/videotestsrc/gstvideotestsrc.c
@@ -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