projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc1c4f
)
vkswapper: check the error of the presentation for out of date
author
Matthew Waters
<matthew@centricular.com>
Fri, 13 May 2016 12:24:35 +0000
(15:24 +0300)
committer
Matthew Waters
<matthew@centricular.com>
Fri, 13 May 2016 12:24:35 +0000
(15:24 +0300)
allows us to resize the swapchain correctly.
ext/vulkan/vkswapper.c
patch
|
blob
|
history
diff --git
a/ext/vulkan/vkswapper.c
b/ext/vulkan/vkswapper.c
index
96e16ff
..
d528f0b
100644
(file)
--- a/
ext/vulkan/vkswapper.c
+++ b/
ext/vulkan/vkswapper.c
@@
-981,7
+981,10
@@
reacquire:
present.pResults = &present_err;
err = swapper->QueuePresentKHR (swapper->queue->queue, &present);
- if (err == VK_ERROR_OUT_OF_DATE_KHR) {
+ 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");
if (!_swapchain_resize (swapper, error))