# HG changeset patch # User ib # Date 1398346582 0 # Node ID 83aa0570d6bee066f7e8bdbd03009c6b224309f5 # Parent 7471626e943e2251cdf96f4b3eb515104613c4c8 Add get_vf(). (Currently unused, but we will need it soon.) diff -r 7471626e943e -r 83aa0570d6be gui/interface.c --- 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 */ /**