vulkan/error: add the error value in hex and decimal

Provides more information for what may be an 'Unknown' error.
This commit is contained in:
Matthew Waters 2019-08-23 14:13:16 +10:00
parent 5ab92e05d8
commit be9c9e44f1

View file

@ -113,7 +113,8 @@ gst_vulkan_error_to_g_error (VkResult result, GError ** error,
g_vasprintf (&string, format, args);
va_end (args);
g_set_error (error, GST_VULKAN_ERROR, result, "%s: %s", result_str, string);
g_set_error (error, GST_VULKAN_ERROR, result, "%s (0x%x, %i): %s", result_str,
result, result, string);
return result;
}