Ejemplo n.º 1
0
void new_config(void)
/* configure numbered item menu */
{
USHORT cdis[10];

	clear_mem(cdis, sizeof(cdis));
	if (vs.dcoor)
		cdis[3] = QCF_ASTERISK;

	switch(soft_qchoice(cdis, "configuration"))
	{
		case 0:		/* set temp path */
			config_path();
			break;
		case 1:
			save_default_settings();
			break;
		case 2:
			config_input();
			break;
		case 3:
			vs.dcoor = !vs.dcoor;
			break;
		default:
			break;
	}
}
Ejemplo n.º 2
0
static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
{
    DrawTextContext *s = ctx->priv;

    if (!strcmp(cmd, "reinit")) {
        int ret;
        uninit(ctx);
        s->reinit = 1;
        if ((ret = av_set_options_string(ctx, arg, "=", ":")) < 0)
            return ret;
        if ((ret = init(ctx)) < 0)
            return ret;
        return config_input(ctx->inputs[0]);
    }

    return AVERROR(ENOSYS);
}