From 21885a593cf9732cc84550bb7bea0a7e0c60def5 Mon Sep 17 00:00:00 2001 From: Carl Zhang Date: Mon, 3 Feb 2020 05:02:22 -0500 Subject: fix android build issue and remove some trailing whitespace remove extraneous closing brace fixes #365 Signed-off-by: Carl Zhang --- va/android/va_android.cpp | 1 - va/va.c | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/va/android/va_android.cpp b/va/android/va_android.cpp index 4b5d81e..370adb9 100644 --- a/va/android/va_android.cpp +++ b/va/android/va_android.cpp @@ -100,7 +100,6 @@ static void va_DisplayContextDestroy ( free(pDisplayContext); } -} static VAStatus va_DisplayContextGetNumCandidates( VADisplayContextP pDisplayContext, int *num_candidates diff --git a/va/va.c b/va/va.c index 7f014a1..2083f5c 100644 --- a/va/va.c +++ b/va/va.c @@ -378,7 +378,7 @@ static VAStatus va_getDriverNameByIndex(VADisplay dpy, char **driver_name, int c status = pDisplayContext->vaGetDriverName(pDisplayContext, driver_name); else status = VA_STATUS_ERROR_INVALID_PARAMETER; - } + } driver_name_env = getenv("LIBVA_DRIVER_NAME"); /*if user set driver name by vaSetDriverName */ if (ctx->override_driver_name){ @@ -398,7 +398,7 @@ static VAStatus va_getDriverNameByIndex(VADisplay dpy, char **driver_name, int c *driver_name = strdup(driver_name_env); va_infoMessage(dpy, "User environment variable requested driver '%s'\n", *driver_name); return VA_STATUS_SUCCESS; - } + } return status; } @@ -744,7 +744,7 @@ VAStatus vaInitialize ( if (vaStatus == VA_STATUS_SUCCESS) { break; } - + } *major_version = VA_MAJOR_VERSION; -- cgit v1.2.1