diff options
author | sfan5 <sfan5@live.de> | 2020-10-16 11:06:37 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-10-16 17:48:05 +0200 |
commit | 3d9d041a1114cd892ba1b9ba25d3e684cf4fc65f (patch) | |
tree | 375922d74020591c24377df96405b347bd1d60e3 /player | |
parent | b8104a013d958e3f177891b22949fc2e66eab955 (diff) | |
download | mpv-3d9d041a1114cd892ba1b9ba25d3e684cf4fc65f.tar.bz2 mpv-3d9d041a1114cd892ba1b9ba25d3e684cf4fc65f.tar.xz |
command: expose underlying pixfmt for hwdec
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)}, |