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

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


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

direct3d9: use picture_pool_New() instead of picture_pool_NewExtended()

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

 modules/video_output/win32/direct3d9.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 9dd9665f38..2917300d1f 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -279,12 +279,7 @@ static picture_pool_t *Direct3D9CreatePicturePool(vlc_object_t *o,
         pictures[picture_count] = picture;
     }
 
-    picture_pool_configuration_t pool_cfg;
-    memset(&pool_cfg, 0, sizeof(pool_cfg));
-    pool_cfg.picture_count = count;
-    pool_cfg.picture       = pictures;
-
-    pool = picture_pool_NewExtended( &pool_cfg );
+    pool = picture_pool_New( count, pictures );
 
 error:
     if (pool == NULL && pictures) {



More information about the vlc-commits mailing list