mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
vaapivideomemory: log error if not VA image
Log an error message if the test image for surface downloading cannot be allocated or mapped.
This commit is contained in:
parent
f88ce54b65
commit
b9b8c26c40
1 changed files with 10 additions and 2 deletions
|
@ -805,9 +805,9 @@ allocator_configure_image_info (GstVaapiDisplay * display,
|
|||
|
||||
image = new_image (display, &allocator->image_info);
|
||||
if (!image)
|
||||
goto bail;
|
||||
goto error;
|
||||
if (!gst_vaapi_image_map (image))
|
||||
goto bail;
|
||||
goto error;
|
||||
|
||||
gst_video_info_update_from_image (&allocator->image_info, image);
|
||||
gst_vaapi_image_unmap (image);
|
||||
|
@ -815,6 +815,14 @@ allocator_configure_image_info (GstVaapiDisplay * display,
|
|||
bail:
|
||||
if (image)
|
||||
gst_vaapi_object_unref (image);
|
||||
return;
|
||||
|
||||
/* ERRORS */
|
||||
error:
|
||||
{
|
||||
GST_ERROR_OBJECT (allocator, "Cannot create or map a VA image");
|
||||
goto bail;
|
||||
}
|
||||
}
|
||||
|
||||
GstAllocator *
|
||||
|
|
Loading…
Reference in a new issue