hardware/intel/libva
Revision | 2a3f0d68a6567c99ad60813717832260cbc5a2b6 (tree) |
---|---|
Zeit | 2013-05-28 17:46:47 |
Autor | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Xiang, Haihao |
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>
@@ -309,7 +309,7 @@ void va_TraceCodedBuf(VADisplay dpy) | ||
309 | 309 | unsigned int i; |
310 | 310 | |
311 | 311 | va_TraceMsg(idx, "\tsize = %d\n", buf_list->size); |
312 | - if (trace_context[idx].trace_fp_log) | |
312 | + if (trace_context[idx].trace_fp_codedbuf) | |
313 | 313 | fwrite(buf_list->buf, buf_list->size, 1, trace_context[idx].trace_fp_codedbuf); |
314 | 314 | |
315 | 315 | for (i=0; i<buf_list->size; i++) |