glimagesink: Check if context creation failed before trying to use it
authorSebastian Dröge <sebastian@centricular.com>
Mon, 19 May 2014 10:25:51 +0000 (12:25 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:40 +0000 (19:31 +0000)
commit8b7d8a95ea1916845b52a9d3a63bda141db6f9c4
treeeb05452545d4895d504275ce345dadc92c46711b
parent9fd7e34feeb694bb94c5969056e094639fb73c38
glimagesink: Check if context creation failed before trying to use it

Otherwise we will cause assertions everywhere by passing NULL to functions
and eventually crash when dereferencing a NULL pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=730069
ext/gl/gstglimagesink.c