kmssink: Fix crash on NULL dmabuf allocator pointer
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 6 Oct 2017 19:07:58 +0000 (15:07 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 6 Oct 2017 19:10:26 +0000 (15:10 -0400)
commitf272ddf9c7004a0e041d8ee1c8ea7fd2da6e267a
tree368f16957906c185ac388de4b48072bf66773dc4
parentff0ccc2a111ba48e6fae756b46b7b6018c250e32
kmssink: Fix crash on NULL dmabuf allocator pointer

Now that we are doing lazy allocation, we may endup calling _stop()
before the allocator was created. As a side effect, we need to nul-check
the pointer before calling it's method (_clear_cache()).

https://bugzilla.gnome.org/show_bug.cgi?id=787593
sys/kms/gstkmssink.c