changeset 37079:83aa0570d6be

Add get_vf(). (Currently unused, but we will need it soon.)
author ib
date Thu, 24 Apr 2014 13:36:22 +0000
parents 7471626e943e
children 0b0528ba3344
files gui/interface.c
diffstat 1 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Apr 24 13:31:52 2014 +0000
+++ b/gui/interface.c	Thu Apr 24 13:36:22 2014 +0000
@@ -131,6 +131,33 @@
     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 */
 
 /**