diff options
author | wm4 <wm4@nowhere> | 2012-08-06 19:05:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-06 19:05:32 +0200 |
commit | 97855746f1c6c69a0ac929c38e72854b83bae63c (patch) | |
tree | 37c502449404a9baafc8261a0be751b9118662ba /image_writer.c | |
parent | 0a20d13dfc77cbf1aa86ef8183306243985041b7 (diff) | |
download | mpv-97855746f1c6c69a0ac929c38e72854b83bae63c.tar.bz2 mpv-97855746f1c6c69a0ac929c38e72854b83bae63c.tar.xz |
image_writer: rename "filetype" option to "format"
Although slightly less precise, this sounds less clunky.
This change also causes the --screenshot-filetype option to be renamed
to --screenshot-format.
Diffstat (limited to 'image_writer.c')
-rw-r--r-- | image_writer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/image_writer.c b/image_writer.c index af1002164e..8e875884d1 100644 --- a/image_writer.c +++ b/image_writer.c @@ -46,7 +46,7 @@ #include "m_option.h" const struct image_writer_opts image_writer_opts_defaults = { - .filetype = "png", + .format = "png", .png_compression = 7, .jpeg_quality = 85, .jpeg_optimize = 100, @@ -68,7 +68,7 @@ const struct m_sub_options image_writer_conf = { OPT_MAKE_FLAGS("jpeg-progressive", jpeg_progressive, 0), OPT_MAKE_FLAGS("jpeg-baseline", jpeg_baseline, 0), OPT_INTRANGE("png-compression", png_compression, 0, 0, 9), - OPT_STRING("filetype", filetype, 0), + OPT_STRING("format", format, 0), {0}, }, .size = sizeof(struct image_writer_opts), @@ -239,7 +239,7 @@ static const struct img_writer img_writers[] = { static const struct img_writer *get_writer(const struct image_writer_opts *opts) { - const char *type = opts->filetype; + const char *type = opts->format; for (size_t n = 0; n < sizeof(img_writers) / sizeof(img_writers[0]); n++) { const struct img_writer *writer = &img_writers[n]; |