[vlc-commits] Cosmetics
Rémi Denis-Courmont
git at videolan.org
Sun Mar 27 15:57:15 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 27 16:56:43 2011 +0300| [9dff8ba67689027a0c16c519fc03587270dddcf1] | committer: Rémi Denis-Courmont
Cosmetics
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9dff8ba67689027a0c16c519fc03587270dddcf1
---
src/input/info.h | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/input/info.h b/src/input/info.h
index d36d447..83db8fa 100644
--- a/src/input/info.h
+++ b/src/input/info.h
@@ -86,15 +86,14 @@ static inline info_t *info_category_VaAddInfo(info_category_t *cat,
const char *name,
const char *format, va_list args)
{
- info_t *info = info_category_FindInfo(cat, NULL, name);
- if (!info) {
- info = info_New(name, NULL);
+ info_t *info = info_category_FindInfo(cat, NULL, name);
+ if (!info) {
+ info = info_New(name, NULL);
if (!info)
return NULL;
- INSERT_ELEM(cat->pp_infos, cat->i_infos, cat->i_infos, info);
- } else {
+ INSERT_ELEM(cat->pp_infos, cat->i_infos, cat->i_infos, info);
+ } else
free(info->psz_value);
- }
if (vasprintf(&info->psz_value, format, args) == -1)
info->psz_value = NULL;
return info;
More information about the vlc-commits
mailing list