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)
vlc_va_Terminate(sys->vaconn);
}
if (sys->x11display)
XCloseDisplay(sys->x11display);
if (sys->conn)
{
/* show the default cursor */
......@@ -380,6 +377,9 @@ void CloseVaapiX11(vlc_object_t *obj)
xcb_disconnect(sys->conn);
}
if (sys->x11display)
XCloseDisplay(sys->x11display);
if (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