[vlc-commits] vlc_vaapi: cleaning after code removal

Steve Lhomme git at videolan.org
Wed Nov 20 08:42:04 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Nov 20 08:41:30 2019 +0100| [0a9be7307f6c9c4227001a8cf840261f33eb6d54] | committer: Steve Lhomme

vlc_vaapi: cleaning after code removal

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

 modules/hw/vaapi/vlc_vaapi.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/hw/vaapi/vlc_vaapi.c b/modules/hw/vaapi/vlc_vaapi.c
index ed2b7a9c56..cf5c8baf40 100644
--- a/modules/hw/vaapi/vlc_vaapi.c
+++ b/modules/hw/vaapi/vlc_vaapi.c
@@ -482,8 +482,6 @@ vlc_vaapi_PoolNew(vlc_object_t *o, vlc_decoder_device *dec_device,
     instance->num_render_targets = count;
     atomic_init(&instance->pic_refcount, 0);
 
-    VASurfaceAttrib *attribs = NULL;
-    unsigned num_attribs = 0;
     VASurfaceAttrib fourcc_attribs[1] = {
         {
             .type = VASurfaceAttribPixelFormat,
@@ -492,15 +490,13 @@ vlc_vaapi_PoolNew(vlc_object_t *o, vlc_decoder_device *dec_device,
             .value.value.i = va_fourcc,
         }
     };
-        attribs = fourcc_attribs;
-        num_attribs = 1;
 
     picture_t *pics[count];
 
     VA_CALL(o, vaCreateSurfaces, dpy, va_rt_format,
             fmt->i_visible_width, fmt->i_visible_height,
             instance->render_targets, instance->num_render_targets,
-            attribs, num_attribs);
+            fourcc_attribs, 1);
 
     for (unsigned i = 0; i < count; i++)
     {



More information about the vlc-commits mailing list