videoaggregator: Limit accepted caps by template caps
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 13 Oct 2020 13:31:41 +0000 (15:31 +0200)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Tue, 13 Oct 2020 13:41:38 +0000 (15:41 +0200)
This seems like an obvious mistake, since `modified_caps` was created
but not used.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/868>

gst-libs/gst/video/gstvideoaggregator.c

index c2146ce..2ce791f 100644 (file)
@@ -2519,7 +2519,7 @@ gst_video_aggregator_pad_sink_acceptcaps (GstPad * pad,
 
   modified_caps = gst_caps_intersect (accepted_caps, template_caps);
 
-  ret = gst_caps_can_intersect (caps, accepted_caps);
+  ret = gst_caps_can_intersect (caps, modified_caps);
   GST_DEBUG_OBJECT (pad, "%saccepted caps %" GST_PTR_FORMAT,
       (ret ? "" : "not "), caps);
   gst_caps_unref (accepted_caps);