mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
Don't include chroma-site and colorimetry in generic template caps
This commit is contained in:
parent
8e75c37ce4
commit
3d40e2f547
1 changed files with 12 additions and 1 deletions
|
@ -244,10 +244,21 @@ bool gst_video_info_from_aja_video_format(GstVideoInfo *info,
|
|||
|
||||
GstCaps *gst_ntv2_video_format_to_caps(NTV2VideoFormat format) {
|
||||
GstVideoInfo info;
|
||||
GstCaps *caps;
|
||||
|
||||
if (!gst_video_info_from_ntv2_video_format(&info, format)) return NULL;
|
||||
|
||||
return gst_video_info_to_caps(&info);
|
||||
caps = gst_video_info_to_caps(&info);
|
||||
if (!caps) return caps;
|
||||
|
||||
guint n = gst_caps_get_size(caps);
|
||||
for (guint i = 0; i < n; i++) {
|
||||
GstStructure *s = gst_caps_get_structure(caps, i);
|
||||
|
||||
gst_structure_remove_fields(s, "chroma-site", "colorimetry", NULL);
|
||||
}
|
||||
|
||||
return caps;
|
||||
}
|
||||
|
||||
bool gst_video_info_from_ntv2_video_format(GstVideoInfo *info,
|
||||
|
|
Loading…
Reference in a new issue