mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -957,7 +957,7 @@ gst_vaapi_dmabuf_memory_new (GstAllocator * base_allocator,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
display = gst_vaapi_video_meta_get_display (meta);
|
display = gst_vaapi_video_meta_get_display (meta);
|
||||||
if (!meta)
|
if (!display)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
surface = gst_vaapi_surface_new_full (display, surface_info,
|
surface = gst_vaapi_surface_new_full (display, surface_info,
|
||||||
|
|
Loading…
Reference in a new issue