diff options
-rw-r--r-- | va/va.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -515,15 +515,15 @@ VAStatus vaTerminate ( free(old_ctx->vtable_vpp); old_ctx->vtable_vpp = NULL; - if (VA_STATUS_SUCCESS == vaStatus) - pDisplayContext->vaDestroy(pDisplayContext); - VA_TRACE_LOG(va_TraceTerminate, dpy); va_TraceEnd(dpy); va_FoolEnd(dpy); + if (VA_STATUS_SUCCESS == vaStatus) + pDisplayContext->vaDestroy(pDisplayContext); + return vaStatus; } |