[vlc-commits] direct3d11: use picture_pool_New() instead of picture_pool_NewExtended()

Steve Lhomme git at videolan.org
Mon Feb 25 14:52:34 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 25 14:50:30 2019 +0100| [26287604ce58a6a05efd0043dcbff1a56da47a11] | committer: Steve Lhomme

direct3d11: use picture_pool_New() instead of picture_pool_NewExtended()

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

 modules/video_output/win32/direct3d11.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index a20000cc4a..d2ffd7797c 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -631,17 +631,10 @@ static picture_pool_t *Pool(vout_display_t *vd, unsigned pool_size)
         }
     }
 
-    picture_pool_configuration_t pool_cfg = {
-        .picture       = pictures,
-        .picture_count = pool_size,
-    };
-    sys->sys.pool = picture_pool_NewExtended( &pool_cfg );
+    sys->sys.pool = picture_pool_New( pool_size, pictures );
 
 error:
     if (sys->sys.pool == NULL) {
-        picture_pool_configuration_t pool_cfg = {
-            .picture_count = 0,
-        };
         if (pictures) {
             msg_Dbg(vd, "Failed to create the picture d3d11 pool");
             for (unsigned i=0;i<picture_count; ++i)
@@ -650,7 +643,7 @@ error:
         }
 
         /* create an empty pool to avoid crashing */
-        sys->sys.pool = picture_pool_NewExtended( &pool_cfg );
+        sys->sys.pool = picture_pool_New( 0, NULL );
     } else {
         msg_Dbg(vd, "D3D11 pool succeed with %d surfaces (%dx%d) context 0x%p",
                 pool_size, surface_fmt.i_width, surface_fmt.i_height, sys->d3d_dev.d3dcontext);



More information about the vlc-commits mailing list