Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
videoaggregator: Limit accepted caps by template caps
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/869>
  • Loading branch information
heftig authored and tp-m committed Oct 14, 2020
1 parent 08c125a commit 36b1576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gst-libs/gst/video/gstvideoaggregator.c
Expand Up @@ -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);
Expand Down

0 comments on commit 36b1576

Please sign in to comment.