mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
vasurfaceimage: log surface status string
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6022>
This commit is contained in:
parent
4550671b6f
commit
8fd9b9b237
1 changed files with 10 additions and 1 deletions
|
@ -372,6 +372,15 @@ va_check_surface (GstVaDisplay * display, VASurfaceID surface)
|
|||
return va_check_surface_has_status (display, surface, 0);
|
||||
}
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
static const char *surface_status_str_map[] = {
|
||||
[VASurfaceRendering] = "rendering",
|
||||
[VASurfaceDisplaying] = "displaying",
|
||||
[VASurfaceReady] = "ready",
|
||||
[VASurfaceSkipped] = "skipped"
|
||||
};
|
||||
#endif
|
||||
|
||||
gboolean
|
||||
va_check_surface_has_status (GstVaDisplay * display, VASurfaceID surface,
|
||||
VASurfaceStatus surface_status)
|
||||
|
@ -387,7 +396,7 @@ va_check_surface_has_status (GstVaDisplay * display, VASurfaceID surface,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
GST_LOG ("surface %#x status %d", surface, state);
|
||||
GST_LOG ("surface %#x status: %s", surface, surface_status_str_map[state]);
|
||||
|
||||
/* Just query the surface, no flag to compare, we succeed. */
|
||||
if (!surface_status)
|
||||
|
|
Loading…
Reference in a new issue