diff options
author | Michael Tretter <m.tretter@pengutronix.de> | 2019-01-23 12:50:40 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-01 18:00:02 +0100 |
commit | 75f519eee837b140e243733f2260c7aeccfc6069 (patch) | |
tree | 069fc391e174d76244816a45d697b90aafbdb0cf | |
parent | 3cfe7a737b2931995cb5149ac96907f50d1256f9 (diff) | |
download | gstreamer-plugins-base-75f519eee837b140e243733f2260c7aeccfc6069.tar.gz |
glupload: prevent segfault when updating caps
When the glupload element renegotiates the caps, set_caps will reset the
method_impl to NULL, but the method will be kept. transform_caps tries
to use the method_impl to transform the caps, because a method is set,
but will segfault.
-rw-r--r-- | gst-libs/gst/gl/gstglupload.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglupload.c b/gst-libs/gst/gl/gstglupload.c index 0b0328e04..057a3cce8 100644 --- a/gst-libs/gst/gl/gstglupload.c +++ b/gst-libs/gst/gl/gstglupload.c @@ -1714,6 +1714,7 @@ _gst_gl_upload_set_caps_unlocked (GstGLUpload * upload, GstCaps * in_caps, gst_video_info_from_caps (&upload->priv->in_info, in_caps); gst_video_info_from_caps (&upload->priv->out_info, out_caps); + upload->priv->method = NULL; upload->priv->method_impl = NULL; upload->priv->method_i = 0; |