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

codec/avcodec/vaapi{_x11}.c: call vlc_va_Initialize/vlc_va_Terminate

Use vlc_va_* wrapper to call vaInitialize and vaTerminate
parent afeaabef
......@@ -445,11 +445,9 @@ static void Close( vlc_va_vaapi_t *p_va )
if( p_va->i_config_id != VA_INVALID_ID )
vaDestroyConfig( p_va->conn->p_display, p_va->i_config_id );
if( p_va->conn->p_display )
vaTerminate( p_va->conn->p_display );
if( p_va->conn->p_display_x11 )
XCloseDisplay( p_va->conn->p_display_x11 );
vlc_va_Terminate( p_va->conn );
}
static void Delete( vlc_va_t *p_external )
{
vlc_va_vaapi_t *p_va = vlc_va_vaapi_Get(p_external);
......
......@@ -257,11 +257,10 @@ void CloseVaapiX11 (vlc_object_t *obj)
{
XFlush(sys->conn->p_display_x11);
XSync(sys->conn->p_display_x11, False);
XCloseDisplay(sys->conn->p_display_x11);
sys->conn->p_display_x11 = NULL;
}
if (sys->embed)
vout_display_DeleteWindow (vd, sys->embed);
vlc_va_Terminate(sys->conn);
free(vd->sys);
}
......
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