diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2010-03-31 14:23:36 +0800 |
---|---|---|
committer | Austin Yuan <shengquan.yuan@gmail.com> | 2010-03-31 14:23:36 +0800 |
commit | 341716afee65acdd549bb6e84a7101e9803cfe00 (patch) | |
tree | 23c2795cd8d8273f19226804201fbf71f5d96421 /va/va_trace.c | |
parent | acf42fc19c8025c5842314e89b5a103132827176 (diff) | |
download | libva-341716afee65acdd549bb6e84a7101e9803cfe00.tar.gz |
Initial android backend
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
Diffstat (limited to 'va/va_trace.c')
-rw-r--r-- | va/va_trace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/va/va_trace.c b/va/va_trace.c index 9242b52..e0e335f 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -28,6 +28,7 @@ #include <assert.h> #include <stdarg.h> +#include <stdlib.h> #include <stdio.h> #include <string.h> #include <dlfcn.h> @@ -49,7 +50,7 @@ static unsigned int trace_height; int va_TraceInit(void) { - trace_file = getenv("LIBVA_TRACE"); + trace_file = (const char *)getenv("LIBVA_TRACE"); if (trace_file) { trace_fp = fopen(trace_file, "w"); if (trace_fp) @@ -1109,5 +1110,5 @@ int va_TraceEndPicture( tmp = UV_data + i * chroma_u_stride; } } - free(buffer); + free((void *)buffer); } |