From 3d9d041a1114cd892ba1b9ba25d3e684cf4fc65f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 16 Oct 2020 11:06:37 +0200 Subject: command: expose underlying pixfmt for hwdec --- player/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player') diff --git a/player/command.c b/player/command.c index 982efa2e3a..e55e6e46d9 100644 --- a/player/command.c +++ b/player/command.c @@ -2195,6 +2195,8 @@ 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))}, + {"hw-pixelformat", SUB_PROP_STR(mp_imgfmt_to_name(p.hw_subfmt)), + .unavailable = !p.hw_subfmt}, {"average-bpp", SUB_PROP_INT(bpp), .unavailable = !bpp}, {"w", SUB_PROP_INT(p.w)}, -- cgit v1.2.3