Mercurial > mplayer.hg
changeset 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 |
files | gui/interface.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/interface.c Thu Apr 24 13:20:58 2014 +0000 +++ b/gui/interface.c Thu Apr 24 13:22:38 2014 +0000 @@ -287,7 +287,10 @@ i++; } - if (!vf_settings[i].name) { + if (vf_settings[i].name) { + listFree(&vf_settings[i].attribs); + vf_settings[i].attribs = listDup(argvf); + } else { void *settings = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t)); if (!settings)