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:
parent
eb1d396536
commit
a1f7b5573d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user