diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-09-19 05:11:39 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-09-19 05:34:40 +0300 |
commit | 7e63b068bde3da966c2d1bf3e1b5f124ec008dea (patch) | |
tree | 522913fe1893ddbb4f17f6fa33b665720a6374d3 | |
parent | a0854c197893e4e05090d223a88fbb7e180f3c83 (diff) | |
download | mpv-7e63b068bde3da966c2d1bf3e1b5f124ec008dea.tar.bz2 mpv-7e63b068bde3da966c2d1bf3e1b5f124ec008dea.tar.xz |
UI: Make the 'D' key print the new deinterlace status
Define a way to show the property on the OSD and use step_property_osd
instead of step_property. Also change the mp_property_deinterlace()
function to use m_property_flag_ro() to make it print
'enabled/disabled' instead of 'yes/no'.
-rw-r--r-- | command.c | 5 | ||||
-rw-r--r-- | input/input.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -1046,7 +1046,9 @@ static int mp_property_deinterlace(m_option_t *prop, int action, vf->control(vf, VFCTRL_SET_DEINTERLACE, &deinterlace); return M_PROPERTY_OK; } - return M_PROPERTY_NOT_IMPLEMENTED; + int value = 0; + vf->control(vf, VFCTRL_GET_DEINTERLACE, &value); + return m_property_flag_ro(prop, action, arg, value); } /// Panscan (RW) @@ -2213,6 +2215,7 @@ static struct property_osd_display { { "rootwin", 0, -1, _("Rootwin: %s") }, { "border", 0, -1, _("Border: %s") }, { "framedropping", 0, -1, _("Framedropping: %s") }, + { "deinterlace", 0, -1, _("Deinterlace: %s") }, { "gamma", OSD_BRIGHTNESS, -1, _("Gamma") }, { "brightness", OSD_BRIGHTNESS, -1, _("Brightness") }, { "contrast", OSD_CONTRAST, -1, _("Contrast") }, diff --git a/input/input.c b/input/input.c index ef8c401712..71dfb38155 100644 --- a/input/input.c +++ b/input/input.c @@ -425,7 +425,7 @@ static const mp_cmd_bind_t def_cmd_binds[] = { { { '7', 0 }, "saturation -1" }, { { '8', 0 }, "saturation 1" }, { { 'd', 0 }, "frame_drop" }, - { { 'D', 0 }, "step_property deinterlace" }, + { { 'D', 0 }, "step_property_osd deinterlace" }, { { 'r', 0 }, "sub_pos -1" }, { { 't', 0 }, "sub_pos +1" }, { { 'a', 0 }, "sub_alignment" }, |