videoaggregator: unref temporary caps

The "possible_caps" needs unref after finished using to
avoid memory leak.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2430>
This commit is contained in:
U. Artie Eoff 2022-05-16 12:34:36 -04:00 committed by GStreamer Marge Bot
parent 909154a989
commit c9417a1dea

View file

@ -1063,6 +1063,8 @@ gst_video_aggregator_find_best_format (GstVideoAggregator * vagg,
gst_caps_unref (possible_caps);
continue;
}
gst_caps_unref (possible_caps);
}
/* If the format is supported, consider it very high weight */