Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrikanth <gskanth@gmail.com>2015-03-10 01:34:49 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-03-17 00:52:19 +0300
commit730f3c49e0821cd156b0ff714a098d202c9673df (patch)
tree48f6289bac590f86f76b5c31eba97cfdcd6b7f9f /libavutil/opencl.c
parentb425b81fd2040f173051efc0f1413f2101ba993e (diff)
OpenCL uninit bug fix - clear is_compiled flag
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opencl.c')
-rw-r--r--libavutil/opencl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/opencl.c b/libavutil/opencl.c
index 36cb6fe81d..2df565329f 100644
--- a/libavutil/opencl.c
+++ b/libavutil/opencl.c
@@ -588,6 +588,7 @@ end:
void av_opencl_uninit(void)
{
+ int i;
cl_int status;
LOCK_OPENCL;
opencl_ctx.init_count--;
@@ -611,6 +612,9 @@ void av_opencl_uninit(void)
}
opencl_ctx.context = NULL;
}
+ for (i = 0; i < opencl_ctx.kernel_code_count; i++) {
+ opencl_ctx.kernel_code[i].is_compiled = 0;
+ }
free_device_list(&opencl_ctx.device_list);
end:
if (opencl_ctx.init_count <= 0)