From ca8d5f28728f0054dda85c3a07571336a9d6aa74 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 10 Aug 2017 01:48:18 +0200 Subject: [PATCH] videoaggregator: use colorimetry from find_best_format. This increases the chances that we won't need to do any conversion for a given pad. https://bugzilla.gnome.org/show_bug.cgi?id=786078 --- gst-libs/gst/video/gstvideoaggregator.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index a7b3bf8055..29ed69a431 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -636,13 +636,16 @@ gst_video_aggregator_default_update_caps (GstVideoAggregator * vagg, } GST_DEBUG_OBJECT (vagg, - "The output format will now be : %d with chroma : %s", - best_format, gst_video_chroma_to_string (best_info.chroma_site)); + "The output format will now be : %d with chroma : %s and colorimetry %s", + best_format, gst_video_chroma_to_string (best_info.chroma_site), + gst_video_colorimetry_to_string (&best_info.colorimetry)); best_format_caps = gst_caps_copy (caps); gst_caps_set_simple (best_format_caps, "format", G_TYPE_STRING, gst_video_format_to_string (best_format), "chroma-site", G_TYPE_STRING, - gst_video_chroma_to_string (best_info.chroma_site), NULL); + gst_video_chroma_to_string (best_info.chroma_site), "colorimetry", + G_TYPE_STRING, gst_video_colorimetry_to_string (&best_info.colorimetry), + NULL); ret = gst_caps_merge (best_format_caps, gst_caps_ref (caps)); return ret;