[MPlayer-cvslog] r37173 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Thu Apr 24 15:22:38 CEST 2014


Author: ib
Date: Thu Apr 24 15:22:38 2014
New Revision: 37173

Log:
Improve add_vf().

Allow changing the options of an existing video filter.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Apr 24 15:20:58 2014	(r37172)
+++ trunk/gui/interface.c	Thu Apr 24 15:22:38 2014	(r37173)
@@ -287,7 +287,10 @@ static void add_vf(const char *vf, const
             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)


More information about the MPlayer-cvslog mailing list