From c28d90de68cd07a54c9bc21a5f1fde619dc81c55 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 6 Jul 2015 18:51:07 +0200 Subject: [PATCH] videoaggregator: Remove pixel-aspect-ratio field from the caps returned by getcaps Avoiding not negotiated error while negotiating as we anyway force 1/1 as output --- gst-libs/gst/video/gstvideoaggregator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 2943036b30..66549d191b 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -866,7 +866,7 @@ gst_videoaggregator_pad_sink_getcaps (GstPad * pad, GstVideoAggregator * vagg, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1, NULL); gst_structure_remove_fields (s, "colorimetry", "chroma-site", "format", - NULL); + "pixel-aspect-ratio", NULL); } if (filter) { @@ -1894,7 +1894,7 @@ gst_videoaggregator_pad_sink_acceptcaps (GstPad * pad, "framerate", GST_TYPE_FRACTION_RANGE, 0, 1, G_MAXINT, 1, NULL); gst_structure_remove_fields (s, "colorimetry", "chroma-site", "format", - NULL); + "pixel-aspect-ratio", NULL); } modified_caps = gst_caps_intersect (accepted_caps, template_caps);