Commit 5d4f1f91 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vaapi: remove tautology

The configuration ID must exist in this code path.
parent fb755df8
......@@ -420,8 +420,7 @@ static void Delete( vlc_va_t *va, AVCodecContext *avctx )
if( sys->i_surface_width || sys->i_surface_height )
DestroySurfaces( sys );
if( sys->i_config_id != VA_INVALID_ID )
vaDestroyConfig( sys->p_display, sys->i_config_id );
vaDestroyConfig(sys->p_display, sys->i_config_id);
vaTerminate( sys->p_display );
#ifdef VLC_VA_BACKEND_XLIB
XCloseDisplay( sys->p_display_x11 );
......
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