From: Timothy Gu Date: Mon, 12 Oct 2015 09:38:49 +0000 (-0700) Subject: opencl: Print error string when compilation fails X-Git-Tag: android-x86-7.1-r1~8457 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d2a1029724f525fec2510b24a095b36f93194abc;p=android-x86%2Fexternal-ffmpeg.git opencl: Print error string when compilation fails --- diff --git a/libavutil/opencl.c b/libavutil/opencl.c index 868649321f..c2956fda9b 100644 --- a/libavutil/opencl.c +++ b/libavutil/opencl.c @@ -484,7 +484,8 @@ cl_program av_opencl_compile(const char *program_name, const char *build_opts) status = clBuildProgram(program, 1, &(opencl_ctx.device_id), build_opts, NULL, NULL); if (status != CL_SUCCESS) { av_log(&opencl_ctx, AV_LOG_ERROR, - "Compilation failed with OpenCL program: %s\n", program_name); + "Compilation failed with OpenCL program '%s': %s\n", + program_name, av_opencl_errstr(status)); program = NULL; goto end; }