Lines 1-6
Link Here
|
1 |
--- va/va.c~ |
1 |
--- ./va/va.c.orig 2014-05-09 12:38:02.000000000 +0800 |
2 |
+++ va/va.c |
2 |
+++ ./va/va.c 2014-07-17 19:11:43.977174636 +0800 |
3 |
@@ -199,7 +199,7 @@ static VAStatus va_openDriver(VADisplay |
3 |
@@ -227,7 +227,7 @@ |
4 |
strncat( driver_path, DRIVER_EXTENSION, strlen(DRIVER_EXTENSION) ); |
4 |
strncat( driver_path, DRIVER_EXTENSION, strlen(DRIVER_EXTENSION) ); |
5 |
|
5 |
|
6 |
va_infoMessage("Trying to open %s\n", driver_path); |
6 |
va_infoMessage("Trying to open %s\n", driver_path); |
Lines 9-11
Link Here
|
9 |
handle = dlopen( driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE ); |
9 |
handle = dlopen( driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE ); |
10 |
#else |
10 |
#else |
11 |
handle = dlopen( driver_path, RTLD_NOW| RTLD_GLOBAL); |
11 |
handle = dlopen( driver_path, RTLD_NOW| RTLD_GLOBAL); |
|
|
12 |
@@ -515,15 +515,15 @@ |
13 |
free(old_ctx->vtable_vpp); |
14 |
old_ctx->vtable_vpp = NULL; |
15 |
|
16 |
- if (VA_STATUS_SUCCESS == vaStatus) |
17 |
- pDisplayContext->vaDestroy(pDisplayContext); |
18 |
- |
19 |
VA_TRACE_LOG(va_TraceTerminate, dpy); |
20 |
|
21 |
va_TraceEnd(dpy); |
22 |
|
23 |
va_FoolEnd(dpy); |
24 |
|
25 |
+ if (VA_STATUS_SUCCESS == vaStatus) |
26 |
+ pDisplayContext->vaDestroy(pDisplayContext); |
27 |
+ |
28 |
return vaStatus; |
29 |
} |
30 |
|