mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-05 11:37:49 +00:00
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
This commit is contained in:
parent
6330eb0cb3
commit
33680a3800
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ static GstCaps *
|
||||||
gcb_transform_internal_caps (GstGLFilter * filter,
|
gcb_transform_internal_caps (GstGLFilter * filter,
|
||||||
GstPadDirection direction, GstCaps * caps, GstCaps * filter_caps)
|
GstPadDirection direction, GstCaps * caps, GstCaps * filter_caps)
|
||||||
{
|
{
|
||||||
GstCaps *tmp = gst_caps_make_writable (caps);
|
GstCaps *tmp = gst_caps_copy (caps);
|
||||||
gint i;
|
gint i;
|
||||||
/* If we're not in passthrough mode, we can only output 2D textures,
|
/* If we're not in passthrough mode, we can only output 2D textures,
|
||||||
* but can always receive any compatible texture.
|
* but can always receive any compatible texture.
|
||||||
|
|
Loading…
Reference in a new issue