From a1f7b5573dd98d5132286941d3985b71704b685b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 9 Jan 2017 19:25:24 +0100 Subject: [PATCH] vaapivideomemory: check for display This patch fixes the check of display, rather than check for the meta, which it is known it exists. --- gst/vaapi/gstvaapivideomemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 3bab3cb62a..9945b4b547 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -957,7 +957,7 @@ gst_vaapi_dmabuf_memory_new (GstAllocator * base_allocator, return NULL; display = gst_vaapi_video_meta_get_display (meta); - if (!meta) + if (!display) return NULL; surface = gst_vaapi_surface_new_full (display, surface_info,