[FFmpeg-cvslog] hwcontext_vulkan: print error information on queue submission failure

Lynne git at videolan.org
Sat Nov 13 15:26:24 EET 2021


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sat Nov 13 14:21:36 2021 +0100| [6a23a5597cd77506210cb14265e94e012a942abd] | committer: Lynne

hwcontext_vulkan: print error information on queue submission failure

Makes it clearer what went wrong.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a23a5597cd77506210cb14265e94e012a942abd
---

 libavutil/hwcontext_vulkan.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index fd9d4d481f..31c7dc2aa5 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -1108,6 +1108,8 @@ static int submit_exec_ctx(AVHWFramesContext *hwfc, VulkanExecCtx *cmd,
 
     ret = vk->QueueSubmit(q->queue, 1, s_info, q->fence);
     if (ret != VK_SUCCESS) {
+        av_log(hwfc, AV_LOG_ERROR, "Queue submission failure: %s\n",
+               vk_ret2str(ret));
         unref_exec_ctx_deps(hwfc, cmd);
         return AVERROR_EXTERNAL;
     }



More information about the ffmpeg-cvslog mailing list