vaapivideomemory: check for display

This patch fixes the check of display, rather than check for the
meta, which it is known it exists.
This commit is contained in:
Víctor Manuel Jáquez Leal 2017-01-09 19:25:24 +01:00
parent eb1d396536
commit a1f7b5573d

View file

@ -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,