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

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


Author: ib
Date: Thu Apr 24 15:36:22 2014
New Revision: 37175

Log:
Add get_vf().

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

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Apr 24 15:31:52 2014	(r37174)
+++ trunk/gui/interface.c	Thu Apr 24 15:36:22 2014	(r37175)
@@ -131,6 +131,33 @@ static void add_vf(const char *vf, const
     mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_AddingVideoFilter, vf);
 }
 
+/**
+ * @brief Get a video filter's array of parameter/value pairs.
+ *
+ * @param vf video filter in question
+ *
+ * @return pointer to the array of parameter/value pairs
+ */
+static char **get_vf(const char *vf)
+{
+    char **attribs = NULL;
+
+    if (vf_settings) {
+        int i = 0;
+
+        while (vf_settings[i].name) {
+            if (strcmp(vf_settings[i].name, vf) == 0) {
+                attribs = vf_settings[i].attribs;
+                break;
+            }
+
+            i++;
+        }
+    }
+
+    return attribs;
+}
+
 /* MPlayer -> GUI */
 
 /**


More information about the MPlayer-cvslog mailing list