From e96c08ecb542fc7dc670cc9fd4abb6feb1679d15 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 10 Jan 2015 21:16:34 +0100 Subject: command: fix property naming convention Use "-" instead of "_" as separator. --- DOCS/man/input.rst | 4 ++-- 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)}, -- cgit v1.2.3