options: fix typo in variable name

This commit is contained in:
wm4 2015-05-03 14:44:42 +02:00
parent 1982fedca6
commit 6a03357b71
3 changed files with 3 additions and 3 deletions

View File

@ -539,7 +539,7 @@ const m_option_t mp_opts[] = {
OPT_SUBSTRUCT("screenshot", screenshot_image_opts, image_writer_conf, 0), OPT_SUBSTRUCT("screenshot", screenshot_image_opts, image_writer_conf, 0),
OPT_STRING("screenshot-template", screenshot_template, 0), OPT_STRING("screenshot-template", screenshot_template, 0),
OPT_STRING("screenshot-directory", screenshot_direcrory, 0), OPT_STRING("screenshot-directory", screenshot_directory, 0),
OPT_SUBSTRUCT("input", input_opts, input_config, 0), OPT_SUBSTRUCT("input", input_opts, input_config, 0),

View File

@ -206,7 +206,7 @@ typedef struct MPOpts {
struct image_writer_opts *screenshot_image_opts; struct image_writer_opts *screenshot_image_opts;
char *screenshot_template; char *screenshot_template;
char *screenshot_direcrory; char *screenshot_directory;
double force_fps; double force_fps;
int index_mode; int index_mode;

View File

@ -280,7 +280,7 @@ static char *gen_fname(screenshot_ctx *ctx, const char *file_ext)
return NULL; return NULL;
} }
char *dir = ctx->mpctx->opts->screenshot_direcrory; char *dir = ctx->mpctx->opts->screenshot_directory;
if (dir && dir[0]) { if (dir && dir[0]) {
void *t = fname; void *t = fname;
dir = mp_get_user_path(t, ctx->mpctx->global, dir); dir = mp_get_user_path(t, ctx->mpctx->global, dir);