diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2019-01-24 10:14:36 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 17:39:19 +0100 |
commit | d6d47f7d1dde4597dd070bc798044803ee1aef13 (patch) | |
tree | d4735fd53d042f100867707341ad90a467ade901 | |
parent | a9f2550fbff1ce1d94a01f640a1affa632b698be (diff) | |
download | gstreamer-plugins-base-d6d47f7d1dde4597dd070bc798044803ee1aef13.tar.gz |
glcolorbalance: Copy caps in transform_internal_caps()
We don't get ownership of the caps that are passed in, and doing so
causes crashes at a later time.
Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/546
-rw-r--r-- | ext/gl/gstglcolorbalance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gl/gstglcolorbalance.c b/ext/gl/gstglcolorbalance.c index 26c51e8e9..f448e9b46 100644 --- a/ext/gl/gstglcolorbalance.c +++ b/ext/gl/gstglcolorbalance.c @@ -181,7 +181,7 @@ static GstCaps * gcb_transform_internal_caps (GstGLFilter * filter, GstPadDirection direction, GstCaps * caps, GstCaps * filter_caps) { - GstCaps *tmp = gst_caps_make_writable (caps); + GstCaps *tmp = gst_caps_copy (caps); gint i; /* If we're not in passthrough mode, we can only output 2D textures, * but can always receive any compatible texture. |