va_trace.c: fix a wrong conditional check
authorAustin Yuan <shengquan.yuan@intel.com>
Thu, 2 Aug 2012 10:24:20 +0000 (18:24 +0800)
committerAustin Yuan <shengquan.yuan@intel.com>
Wed, 8 Aug 2012 03:22:41 +0000 (11:22 +0800)
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>
va/va_trace.c

index a88f4a8..e6fd2b2 100644 (file)
@@ -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++)