summaryrefslogtreecommitdiffstats
path: root/third_party/instrumented_libraries/patches
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/instrumented_libraries/patches')
-rw-r--r--third_party/instrumented_libraries/patches/libva1.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/third_party/instrumented_libraries/patches/libva1.diff b/third_party/instrumented_libraries/patches/libva1.diff
new file mode 100644
index 0000000..2e4ca73
--- /dev/null
+++ b/third_party/instrumented_libraries/patches/libva1.diff
@@ -0,0 +1,22 @@
+diff --git a/va/va.c b/va/va.c
+index 6cb17ef..0ba595b 100644
+--- a/va/va.c
++++ b/va/va.c
+@@ -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;
+ }