[MPlayer-cvslog] r37166 - trunk/gui/interface.c
ib
subversion at mplayerhq.hu
Thu Apr 24 14:39:37 CEST 2014
Author: ib
Date: Thu Apr 24 14:39:37 2014
New Revision: 37166
Log:
Rewrite add_vf().
Move variable to scope where it is used.
Additionally, rename it.
Modified:
trunk/gui/interface.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Thu Apr 24 14:29:30 2014 (r37165)
+++ trunk/gui/interface.c Thu Apr 24 14:39:37 2014 (r37166)
@@ -277,8 +277,6 @@ void guiDone(void)
static void add_vf(const char *vf)
{
- void *p;
-
if (vf_settings) {
int i = 0;
@@ -290,12 +288,12 @@ static void add_vf(const char *vf)
}
if (i != -1) {
- p = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t));
+ void *settings = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t));
- if (!p)
+ if (!settings)
return;
- vf_settings = p;
+ vf_settings = settings;
vf_settings[i].name = strdup(vf);
vf_settings[i].attribs = NULL;
vf_settings[i + 1].name = NULL;
More information about the MPlayer-cvslog
mailing list