gl: guard against using a NULL window pointer
Coverity 1195145
This commit is contained in:
parent
6ec86ca1dc
commit
7a3e141204
@ -1198,8 +1198,10 @@ gst_glimage_sink_redisplay (GstGLImageSink * gl_sink)
|
||||
gboolean alive;
|
||||
|
||||
window = gst_gl_context_get_window (gl_sink->context);
|
||||
if (!window)
|
||||
return FALSE;
|
||||
|
||||
if (window && gst_gl_window_is_running (window)) {
|
||||
if (gst_gl_window_is_running (window)) {
|
||||
|
||||
#if GST_GL_HAVE_GLES2
|
||||
if (USING_GLES2 (gl_sink->context)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user