videoconvert: Keep colorimetry and chroma-site fields if passthrough

https://bugzilla.gnome.org/show_bug.cgi?id=748141
This commit is contained in:
Matthieu Bouron 2015-04-27 11:06:58 +02:00 committed by Sebastian Dröge
parent 9e480d11a2
commit 9dfe40d740

View file

@ -339,6 +339,12 @@ gst_video_convert_fixate_caps (GstBaseTransform * trans,
/* fixate remaining fields */ /* fixate remaining fields */
result = gst_caps_fixate (result); result = gst_caps_fixate (result);
if (direction == GST_PAD_SINK) {
if (gst_caps_is_subset (caps, result)) {
gst_caps_replace (&result, caps);
}
}
return result; return result;
} }