mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
videoaggregator: plug caps leak
It was losing ref of the original 'ret' caps that would be returned or returning it with 2 references to it.
This commit is contained in:
parent
cf6a36721b
commit
14c9e37fdd
1 changed files with 4 additions and 3 deletions
|
@ -680,9 +680,10 @@ gst_videoaggregator_default_update_caps (GstVideoAggregator * vagg,
|
|||
ret = gst_caps_merge (best_format_caps, gst_caps_ref (caps));
|
||||
|
||||
if (filter) {
|
||||
ret = gst_caps_intersect (ret, filter);
|
||||
} else {
|
||||
gst_caps_ref (ret);
|
||||
GstCaps *tmp;
|
||||
tmp = gst_caps_intersect (ret, filter);
|
||||
gst_caps_unref (ret);
|
||||
ret = tmp;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue