videoaggregator: fix bufferpool leak

that happens if it fails to activate the pool

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6047>
This commit is contained in:
Alexander Slobodeniuk 2024-01-31 00:10:59 +01:00 committed by GStreamer Marge Bot
parent e111dfc39c
commit 2748805bbe

View file

@ -2843,6 +2843,7 @@ gst_video_aggregator_create_output_buffer (GstVideoAggregator * videoaggregator,
GST_ELEMENT_ERROR (videoaggregator, RESOURCE, SETTINGS,
("failed to activate bufferpool"),
("failed to activate bufferpool"));
gst_object_unref (pool);
return GST_FLOW_ERROR;
}
}