projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad20a94
)
glmixer: ensure caps are writable after intersection
author
Matthew Waters
<matthew@centricular.com>
Wed, 18 Jan 2017 04:03:48 +0000
(15:03 +1100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:32:26 +0000
(19:32 +0000)
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
ext/gl/gstglmixer.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstglmixer.c
b/ext/gl/gstglmixer.c
index
9a7446a
..
b8f4da0
100644
(file)
--- a/
ext/gl/gstglmixer.c
+++ b/
ext/gl/gstglmixer.c
@@
-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);
}