glupload: prevent segfault when updating caps
authorMichael Tretter <m.tretter@pengutronix.de>
Wed, 23 Jan 2019 11:50:40 +0000 (12:50 +0100)
committerMichael Tretter <m.tretter@pengutronix.de>
Fri, 12 Apr 2019 10:05:22 +0000 (12:05 +0200)
commit9c2379e00aa4dc4ed8a8d84303f5a1bc2333f0ca
tree0a1eaa13b28b5cf09071c9606c177b87c5ac77bd
parent977aa19b8a975347d7613ea94fdbdb77a32469f6
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.
gst-libs/gst/gl/gstglupload.c