Mercurial > mplayer.hg
changeset 29870:eeb60773d668
Show OSD message when enabling/disabling de-interlacing.
Patch by Eric Yager, e_yager1977 A verizon D net
author | cehoyos |
---|---|
date | Sat, 14 Nov 2009 12:46:14 +0000 |
parents | c266883dd527 |
children | a90c7676bf0e |
files | command.c help/help_mp-en.h |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/command.c Fri Nov 13 15:26:16 2009 +0000 +++ b/command.c Sat Nov 14 12:46:14 2009 +0000 @@ -1020,6 +1020,8 @@ 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;
--- a/help/help_mp-en.h Fri Nov 13 15:26:16 2009 +0000 +++ b/help/help_mp-en.h Sat Nov 14 12:46:14 2009 +0000 @@ -211,6 +211,7 @@ #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"