videoaggregator: Remove pixel-aspect-ratio field from the caps returned by getcaps
authorThibault Saunier <tsaunier@gnome.org>
Mon, 6 Jul 2015 16:51:07 +0000 (18:51 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 6 Jul 2015 16:53:38 +0000 (18:53 +0200)
Avoiding not negotiated error while negotiating as we anyway force 1/1
as output

gst-libs/gst/video/gstvideoaggregator.c

index 2943036..66549d1 100644 (file)
@@ -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);