diff options
author | wm4 <wm4@nowhere> | 2015-01-10 21:16:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-10 21:16:34 +0100 |
commit | e96c08ecb542fc7dc670cc9fd4abb6feb1679d15 (patch) | |
tree | 6fedc8c082b63bb0b686d09db3bf90669319b1f3 | |
parent | e5f2072364ac450e0f593f534ddee2ae1a8f2176 (diff) | |
download | mpv-e96c08ecb542fc7dc670cc9fd4abb6feb1679d15.tar.bz2 mpv-e96c08ecb542fc7dc670cc9fd4abb6feb1679d15.tar.xz |
command: fix property naming convention
Use "-" instead of "_" as separator.
-rw-r--r-- | DOCS/man/input.rst | 4 | ||||
-rw-r--r-- | player/command.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index ede28b07bf..02274716bd 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1119,12 +1119,12 @@ Property list The pixel format as string. This uses the same names as used in other places of mpv. - ``video-params/average_bpp`` + ``video-params/average-bpp`` Average bits-per-pixel as integer. Subsampled planar formats use a different resolution, which is the reason this value can sometimes be odd or confusing. Can be unavailable with some formats. - ``video-params/plane_depth`` + ``video-params/plane-depth`` Bit depth for each color component as integer. This is only exposed for planar or single-component formats, and is unavailable for other formats. diff --git a/player/command.c b/player/command.c index c98568beb1..6dc450234c 100644 --- a/player/command.c +++ b/player/command.c @@ -2403,9 +2403,9 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg) struct m_sub_property props[] = { {"pixelformat", SUB_PROP_STR(mp_imgfmt_to_name(p.imgfmt))}, - {"average_bpp", SUB_PROP_INT(bpp), + {"average-bpp", SUB_PROP_INT(bpp), .unavailable = !bpp}, - {"plane_depth", SUB_PROP_INT(desc.plane_bits), + {"plane-depth", SUB_PROP_INT(desc.plane_bits), .unavailable = !(desc.flags & MP_IMGFLAG_PLANAR)}, {"w", SUB_PROP_INT(p.w)}, {"h", SUB_PROP_INT(p.h)}, |