diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2020-10-13 15:31:41 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-10-14 11:20:03 +0100 |
commit | 36b157648d7e91f98292004134323bce51ba1439 (patch) | |
tree | e30839957114da4ad5a4d7f7dd53e2edf0b39fe7 | |
parent | 08c125a89c820a7b5841215ca0b5e9a6b872eeb3 (diff) | |
download | gstreamer-plugins-base-36b157648d7e91f98292004134323bce51ba1439.tar.gz |
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>
-rw-r--r-- | gst-libs/gst/video/gstvideoaggregator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index c2146ce36..2ce791f77 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -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); |