OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
590008e
)
opencl: Print error string when compilation fails
author
Timothy Gu
<timothygu99@gmail.com>
Mon, 12 Oct 2015 09:38:49 +0000
(
02:38
-0700)
committer
Timothy Gu
<timothygu99@gmail.com>
Sat, 17 Oct 2015 08:16:50 +0000
(
01:16
-0700)
libavutil/opencl.c
patch
|
blob
|
history
diff --git
a/libavutil/opencl.c
b/libavutil/opencl.c
index
8686493
..
c2956fd
100644
(file)
--- 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;
}