va: Lower the message level for va_export_surface_to_dmabuf()

Some surface formats such as GST_VIDEO_FORMAT_Y42B and GST_VIDEO_FORMAT_RGB
can be created but can not be exported as DMA buffer. You can not say that
this is a driver bug because the driver may never want to share this kind of
surface out of libva.
And this function will be used to detect modifiers later, so the error message
will be annoying.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4821>
This commit is contained in:
He Junyan 2023-06-09 22:19:47 +08:00 committed by GStreamer Marge Bot
parent 7166fd3863
commit a01f2f0206

View file

@ -135,7 +135,7 @@ va_export_surface_to_dmabuf (GstVaDisplay * display, VASurfaceID surface,
status = vaExportSurfaceHandle (dpy, surface,
VA_SURFACE_ATTRIB_MEM_TYPE_DRM_PRIME_2, flags, desc);
if (status != VA_STATUS_SUCCESS) {
GST_ERROR ("vaExportSurfaceHandle: %s", vaErrorStr (status));
GST_INFO ("vaExportSurfaceHandle: %s", vaErrorStr (status));
return FALSE;
}