[MPlayer-cvslog] r37176 - in trunk: gui/interface.c help/help_mp-de.h help/help_mp-en.h

ib subversion at mplayerhq.hu
Thu Apr 24 15:51:20 CEST 2014


Author: ib
Date: Thu Apr 24 15:51:20 2014
New Revision: 37176

Log:
Add remove_vf().

(Currently unused, but we will need it soon.)

Modified:
   trunk/gui/interface.c

Changes in other areas also in this revision:
Modified:
   trunk/help/help_mp-de.h
   trunk/help/help_mp-en.h

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Apr 24 15:36:22 2014	(r37175)
+++ trunk/gui/interface.c	Thu Apr 24 15:51:20 2014	(r37176)
@@ -158,6 +158,35 @@ static char **get_vf(const char *vf)
     return attribs;
 }
 
+/**
+ * @brief Remove a video filter.
+ *
+ * @param vf video filter to be removed
+ */
+static void remove_vf(char *vf)
+{
+    if (vf_settings) {
+        int i = 0;
+
+        while (vf_settings[i].name) {
+            if (strcmp(vf_settings[i].name, vf) == 0) {
+                mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_RemovingVideoFilter, vf);
+
+                free(vf_settings[i].name);
+                listFree(&vf_settings[i].attribs);
+
+                do
+                    memcpy(&vf_settings[i], &vf_settings[i + 1], sizeof(m_obj_settings_t));
+                while (vf_settings[++i].name);
+
+                break;
+            }
+
+            i++;
+        }
+    }
+}
+
 /* MPlayer -> GUI */
 
 /**


More information about the MPlayer-cvslog mailing list