From: Austin Yuan <shengquan.y...@intel.com>

Should check trace_fp_codedbuf instead of trace_fp_log because
we write to trace_fp_codedbuf

Signed-off-by: Austin Yuan <shengquan.y...@intel.com>
---
 va/va_trace.c |    2 +-
 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++)
-- 
1.7.4.1

_______________________________________________
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to