Mercurial > mplayer.hg
changeset 17891:2bd51d3e6c0f
Print the mute state on the OSD.
author | diego |
---|---|
date | Sat, 18 Mar 2006 18:48:14 +0000 |
parents | 633f3d0a621b |
children | 2a37ab5a913e |
files | help/help_mp-en.h mplayer.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/help/help_mp-en.h Sat Mar 18 18:13:22 2006 +0000 +++ b/help/help_mp-en.h Sat Mar 18 18:48:14 2006 +0000 @@ -227,6 +227,7 @@ #define MSGTR_OSDSubBottom "bottom" #define MSGTR_OSDSubCenter "center" #define MSGTR_OSDSubTop "top" +#define MSGTR_OSDMute "Mute: %s" // mencoder.c:
--- a/mplayer.c Sat Mar 18 18:13:22 2006 +0000 +++ b/mplayer.c Sat Mar 18 18:48:14 2006 +0000 @@ -1056,6 +1056,7 @@ #define OSD_MSG_OSD_STATUS 4 #define OSD_MSG_BAR 5 #define OSD_MSG_PAUSE 6 +#define OSD_MSG_MUTE 7 // These will later be implemented via properties and removed #define OSD_MSG_AV_DELAY 100 @@ -3323,6 +3324,8 @@ if ((edl_muted | user_muted) != mixer.muted) #endif mixer_mute(&mixer); + set_osd_msg(OSD_MSG_MUTE,1,osd_duration, MSGTR_OSDMute, + mixer.muted ? MSGTR_OSDenabled : MSGTR_OSDdisabled); break; case MP_CMD_LOADFILE : { play_tree_t* e = play_tree_new();