mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +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
641bb44226
commit
5fc6284cdc
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