mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
vulkan/swapper: check queue present return later
During resizes, the VkQueuePresent can return OUT_OF_DATE and if a buffer is displayed returning OUT_OF_DATE it would error out and stop the pipeline. We already have a explicit check for OUT_OF_DATE and the same general error check in the statements following so just use that code.
This commit is contained in:
parent
d1f8f7436d
commit
09883b6a6b
1 changed files with 0 additions and 2 deletions
|
@ -1249,8 +1249,6 @@ reacquire:
|
|||
/* *INDENT-ON* */
|
||||
|
||||
err = swapper->priv->QueuePresentKHR (swapper->queue->queue, &present);
|
||||
if (gst_vulkan_error_to_g_error (err, error, "vkQueuePresentKHR") < 0)
|
||||
goto error;
|
||||
|
||||
if (present_err == VK_ERROR_OUT_OF_DATE_KHR) {
|
||||
GST_DEBUG_OBJECT (swapper, "out of date frame submitted");
|
||||
|
|
Loading…
Reference in a new issue