Commit 57362487 authored by Jean-Paul Saman's avatar Jean-Paul Saman

VAAPI-XCB: close display connection with X-server after flushing.

parent c6abcea1
...@@ -368,9 +368,6 @@ void CloseVaapiX11(vlc_object_t *obj) ...@@ -368,9 +368,6 @@ void CloseVaapiX11(vlc_object_t *obj)
vlc_va_Terminate(sys->vaconn); vlc_va_Terminate(sys->vaconn);
} }
if (sys->x11display)
XCloseDisplay(sys->x11display);
if (sys->conn) if (sys->conn)
{ {
/* show the default cursor */ /* show the default cursor */
...@@ -380,6 +377,9 @@ void CloseVaapiX11(vlc_object_t *obj) ...@@ -380,6 +377,9 @@ void CloseVaapiX11(vlc_object_t *obj)
xcb_disconnect(sys->conn); xcb_disconnect(sys->conn);
} }
if (sys->x11display)
XCloseDisplay(sys->x11display);
if (sys->embed) if (sys->embed)
vout_display_DeleteWindow (vd, sys->embed); vout_display_DeleteWindow (vd, sys->embed);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment