[vlc-commits] OpenGL: simplify pool creation
Rémi Denis-Courmont
git at videolan.org
Thu Oct 30 15:04:26 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Oct 30 16:04:16 2014 +0200| [a2d03a83754c9f264a84f9a45310431d41ee9a96] | committer: Rémi Denis-Courmont
OpenGL: simplify pool creation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a2d03a83754c9f264a84f9a45310431d41ee9a96
---
modules/video_output/opengl.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index ceb60dc..7525c4f 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -772,11 +772,7 @@ picture_pool_t *vout_display_opengl_GetPool(vout_display_opengl_t *vgl, unsigned
return NULL;
/* Wrap the pictures into a pool */
- picture_pool_configuration_t cfg;
- memset(&cfg, 0, sizeof(cfg));
- cfg.picture_count = count;
- cfg.picture = picture;
- vgl->pool = picture_pool_NewExtended(&cfg);
+ vgl->pool = picture_pool_New(count, picture);
if (!vgl->pool)
goto error;
More information about the vlc-commits
mailing list