mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 20:20:38 +00:00
glmixer: ensure caps are writable after intersection
gst_caps_intersect () may return an increased reference of one of the input caps. Fixes critical in the simple-launch-lines test: Unexpected critical/warning: gst_caps_set_features: assertion 'IS_WRITABLE (caps)' failed
This commit is contained in:
parent
ad20a945de
commit
6211661fd4
1 changed files with 1 additions and 0 deletions
|
@ -224,6 +224,7 @@ _update_caps (GstVideoAggregator * vagg, GstCaps * caps, GstCaps * filter)
|
|||
|
||||
if (filter) {
|
||||
tmp = gst_caps_intersect (caps, filter);
|
||||
tmp = gst_caps_make_writable (tmp);
|
||||
} else {
|
||||
tmp = gst_caps_copy (caps);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue