From 2a3f0d68a6567c99ad60813717832260cbc5a2b6 Mon Sep 17 00:00:00 2001 From: Austin Yuan Date: Thu, 2 Aug 2012 18:24:20 +0800 Subject: [PATCH] va_trace.c: fix a wrong conditional check Should check trace_fp_codedbuf instead of trace_fp_log because we write to trace_fp_codedbuf Signed-off-by: Austin Yuan --- va/va_trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/va/va_trace.c b/va/va_trace.c index d940171..fff175b 100644 --- a/va/va_trace.c +++ b/va/va_trace.c @@ -309,7 +309,7 @@ void va_TraceCodedBuf(VADisplay dpy) unsigned int i; va_TraceMsg(idx, "\tsize = %d\n", buf_list->size); - if (trace_context[idx].trace_fp_log) + if (trace_context[idx].trace_fp_codedbuf) fwrite(buf_list->buf, buf_list->size, 1, trace_context[idx].trace_fp_codedbuf); for (i=0; isize; i++) -- 2.7.4