summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-14 12:46:14 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-14 12:46:14 +0000
commitb411278fbb00767b8013604157a43e0203f66f4c (patch)
treefdc0daae2ccc557ea6bea1002eb5b796f3706aa4
parentc6bb4950bde24e9c5f2ded47e2525e7184c98beb (diff)
downloadmpv-b411278fbb00767b8013604157a43e0203f66f4c.tar.bz2
mpv-b411278fbb00767b8013604157a43e0203f66f4c.tar.xz
Show OSD message when enabling/disabling de-interlacing.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29912 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--command.c2
-rw-r--r--help/help_mp-en.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/command.c b/command.c
index 779296dc98..1edcc42bcb 100644
--- a/command.c
+++ b/command.c
@@ -1020,6 +1020,8 @@ static int mp_property_deinterlace(m_option_t * prop, int action,
vf->control(vf, VFCTRL_GET_DEINTERLACE, &deinterlace);
deinterlace = !deinterlace;
vf->control(vf, VFCTRL_SET_DEINTERLACE, &deinterlace);
+ set_osd_msg(OSD_MSG_SPEED, 1, osd_duration, MSGTR_OSDDeinterlace,
+ deinterlace ? MSGTR_Enabled : MSGTR_Disabled);
return M_PROPERTY_OK;
}
return M_PROPERTY_NOT_IMPLEMENTED;
diff --git a/help/help_mp-en.h b/help/help_mp-en.h
index 47cf6ae12b..52d0484c93 100644
--- a/help/help_mp-en.h
+++ b/help/help_mp-en.h
@@ -211,6 +211,7 @@ static const char help_text[]=
#define MSGTR_OSDosd "OSD: %s"
#define MSGTR_OSDChapter "Chapter: (%d) %s"
#define MSGTR_OSDAngle "Angle: %d/%d"
+#define MSGTR_OSDDeinterlace "Deinterlace: %s"
// property values
#define MSGTR_Enabled "enabled"