[vlc-commits] vaapi: remove tautology

Rémi Denis-Courmont git at videolan.org
Fri Apr 24 22:47:04 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 24 22:33:22 2015 +0300| [5d4f1f915d52de83359930b22f0984b788792c48] | committer: Rémi Denis-Courmont

vaapi: remove tautology

The configuration ID must exist in this code path.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d4f1f915d52de83359930b22f0984b788792c48
---

 modules/codec/avcodec/vaapi.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index 06e63df..2648503 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -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 );



More information about the vlc-commits mailing list