diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-06-06 19:45:28 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-06-07 09:15:35 +0200 |
commit | 44739b2194dd6645cf37217b90da62d936b33bd8 (patch) | |
tree | 2493f349902d9ae898d4b0bffd87616658c2506d | |
parent | fdf7f65c60db9cd2ff4b3106e5116755439789c6 (diff) |
plugins: verify EGL display is not NULL
-rw-r--r-- | gst/vaapi/gstvaapipluginutil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index 8a455f40..2b99b927 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -219,8 +219,10 @@ egl_display: GstGLDisplayEGL *egl_display; egl_display = gst_gl_display_egl_from_gl_display (gl_display); - egl_handle = gst_gl_display_get_handle (GST_GL_DISPLAY (egl_display)); - gst_object_unref (egl_display); + if (egl_display) { + egl_handle = gst_gl_display_get_handle (GST_GL_DISPLAY (egl_display)); + gst_object_unref (egl_display); + } #endif switch (gst_gl_context_get_gl_api (gl_context)) { |