Пятница, 19 апреля 2013, 16:04 +04:00 от Rinat Ibragimov
<[email protected]>:
>With xvba-va-driver the following code fails to do all 1000 iterations.
>Inside vaInitialize xvba-va-driver opens connection to X server with
>XOpenDisplay, but never closes it. So after around 200 iterations
>vaInitialize returns an error.
I had broken patch formatting in original message. Here is original patch
(attachment).
---
Rinat
diff -ur xvba-video-0.8.0/src/xvba_driver.c xvba-video-0.8.0-n/src/xvba_driver.c
--- xvba-video-0.8.0/src/xvba_driver.c 2011-06-14 15:07:13.000000000 +0400
+++ xvba-video-0.8.0-n/src/xvba_driver.c 2013-04-19 15:28:00.000000000 +0400
@@ -125,6 +125,8 @@
}
xvba_gate_exit();
+ if (driver_data->x11_dpy_local)
+ XCloseDisplay(driver_data->x11_dpy_local);
}
// vaInitialize
_______________________________________________
Libva mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libva