comparison gui/interface.c @ 37077:4bef9233da1b

Improve add_vf(). Allow changing the options of an existing video filter.
author ib
date Thu, 24 Apr 2014 13:22:38 +0000
parents 60835d705f76
children 7471626e943e
comparison
equal deleted inserted replaced
37076:60835d705f76 37077:4bef9233da1b
285 break; 285 break;
286 286
287 i++; 287 i++;
288 } 288 }
289 289
290 if (!vf_settings[i].name) { 290 if (vf_settings[i].name) {
291 listFree(&vf_settings[i].attribs);
292 vf_settings[i].attribs = listDup(argvf);
293 } else {
291 void *settings = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t)); 294 void *settings = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t));
292 295
293 if (!settings) 296 if (!settings)
294 return; 297 return;
295 298