mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
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.
This commit is contained in:
parent
977aa19b8a
commit
9c2379e00a
1 changed files with 1 additions and 0 deletions
|
@ -1869,6 +1869,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->in_info, in_caps);
|
||||||
gst_video_info_from_caps (&upload->priv->out_info, out_caps);
|
gst_video_info_from_caps (&upload->priv->out_info, out_caps);
|
||||||
|
|
||||||
|
upload->priv->method = NULL;
|
||||||
upload->priv->method_impl = NULL;
|
upload->priv->method_impl = NULL;
|
||||||
upload->priv->method_i = 0;
|
upload->priv->method_i = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue