mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
va: libs: Use va_check_surface_has_status() to implement va_check_surface()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4359>
This commit is contained in:
parent
2ec51dab7d
commit
9e2f0ea8dc
1 changed files with 1 additions and 12 deletions
|
@ -369,18 +369,7 @@ va_ensure_image (GstVaDisplay * display, VASurfaceID surface,
|
|||
gboolean
|
||||
va_check_surface (GstVaDisplay * display, VASurfaceID surface)
|
||||
{
|
||||
VADisplay dpy = gst_va_display_get_va_dpy (display);
|
||||
VAStatus status;
|
||||
VASurfaceStatus state;
|
||||
|
||||
status = vaQuerySurfaceStatus (dpy, surface, &state);
|
||||
|
||||
if (status != VA_STATUS_SUCCESS)
|
||||
GST_ERROR ("vaQuerySurfaceStatus: %s", vaErrorStr (status));
|
||||
|
||||
GST_LOG ("surface %#x status %d", surface, state);
|
||||
|
||||
return (status == VA_STATUS_SUCCESS);
|
||||
return va_check_surface_has_status (display, surface, 0);
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
Loading…
Reference in a new issue