summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2012-08-02 18:24:20 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-05-28 16:46:47 +0800
commit2a3f0d68a6567c99ad60813717832260cbc5a2b6 (patch)
tree741d4ad39b379880d4f50ba3d573d230c17df7bc /va
parent400752ae99426ce7fbcfd234838ebf8faf925ea7 (diff)
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 <shengquan.yuan@intel.com>
Diffstat (limited to 'va')
-rw-r--r--va/va_trace.c2
1 files changed, 1 insertions, 1 deletions
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; i<buf_list->size; i++)