[vlc-commits] picture_pool: cosmetics
Rémi Denis-Courmont
git at videolan.org
Fri Jun 26 20:19:33 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 25 21:05:22 2015 +0300| [a102fb45b6478f423abbbba75bfc8ae6ce6497d4] | committer: Rémi Denis-Courmont
picture_pool: cosmetics
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a102fb45b6478f423abbbba75bfc8ae6ce6497d4
---
src/misc/picture_pool.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c
index 34e3089..eeedd37 100644
--- a/src/misc/picture_pool.c
+++ b/src/misc/picture_pool.c
@@ -159,11 +159,10 @@ picture_pool_t *picture_pool_NewExtended(const picture_pool_configuration_t *cfg
picture_pool_t *picture_pool_New(unsigned count, picture_t *const *tab)
{
- picture_pool_configuration_t cfg;
-
- memset(&cfg, 0, sizeof(cfg));
- cfg.picture_count = count;
- cfg.picture = tab;
+ picture_pool_configuration_t cfg = {
+ .picture_count = count,
+ .picture = tab,
+ };
return picture_pool_NewExtended(&cfg);
}
More information about the vlc-commits
mailing list