comparison gui/interface.c @ 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
comparison
equal deleted inserted replaced
37078:7471626e943e 37079:83aa0570d6be
129 } 129 }
130 130
131 mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_AddingVideoFilter, vf); 131 mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_GUI_MSG_AddingVideoFilter, vf);
132 } 132 }
133 133
134 /**
135 * @brief Get a video filter's array of parameter/value pairs.
136 *
137 * @param vf video filter in question
138 *
139 * @return pointer to the array of parameter/value pairs
140 */
141 static char **get_vf(const char *vf)
142 {
143 char **attribs = NULL;
144
145 if (vf_settings) {
146 int i = 0;
147
148 while (vf_settings[i].name) {
149 if (strcmp(vf_settings[i].name, vf) == 0) {
150 attribs = vf_settings[i].attribs;
151 break;
152 }
153
154 i++;
155 }
156 }
157
158 return attribs;
159 }
160
134 /* MPlayer -> GUI */ 161 /* MPlayer -> GUI */
135 162
136 /** 163 /**
137 * @brief Initialize and start the GUI. 164 * @brief Initialize and start the GUI.
138 */ 165 */