diff options
author | Matthieu Bouron <matthieu.bouron@collabora.com> | 2015-04-27 11:06:58 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-04-27 11:20:36 +0200 |
commit | 9dfe40d7402a08eb5bbc1b2568fa48dd9a7b1f9e (patch) | |
tree | 49cdf0822236efb92e792ff3fbcf26ad2eba8255 /gst/videoconvert | |
parent | 9e480d11a2f3f7e9d7c5f63b883a68d62e6a4df3 (diff) | |
download | gstreamer-plugins-base-9dfe40d7402a08eb5bbc1b2568fa48dd9a7b1f9e.tar.gz |
videoconvert: Keep colorimetry and chroma-site fields if passthrough
https://bugzilla.gnome.org/show_bug.cgi?id=748141
Diffstat (limited to 'gst/videoconvert')
-rw-r--r-- | gst/videoconvert/gstvideoconvert.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index e712aa35e..1d3e9f85e 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -339,6 +339,12 @@ gst_video_convert_fixate_caps (GstBaseTransform * trans, /* fixate remaining fields */ result = gst_caps_fixate (result); + if (direction == GST_PAD_SINK) { + if (gst_caps_is_subset (caps, result)) { + gst_caps_replace (&result, caps); + } + } + return result; } |