When we fail to parse the colorimetry property, fall back to the default
colorimetry for the format and dimension instead of leaving things
undefined.
else
info->chroma_site = GST_VIDEO_CHROMA_SITE_UNKNOWN;
- if ((s = gst_structure_get_string (structure, "colorimetry")))
- gst_video_colorimetry_from_string (&info->colorimetry, s);
- else
+ if ((s = gst_structure_get_string (structure, "colorimetry"))) {
+ if (!gst_video_colorimetry_from_string (&info->colorimetry, s))
+ set_default_colorimetry (info);
+ } else
set_default_colorimetry (info);
if (gst_structure_get_fraction (structure, "pixel-aspect-ratio",