diff mplayer.c @ 32730:736b22f11e00

Change MSGTR_Paused definition to allow simplifying some code.
author reimar
date Wed, 26 Jan 2011 21:24:49 +0000
parents 732cd2afae10
children 005b026b1231
line wrap: on
line diff
--- a/mplayer.c	Wed Jan 26 19:00:17 2011 +0000
+++ b/mplayer.c	Wed Jan 26 21:24:49 2011 +0000
@@ -2476,17 +2476,11 @@
 {
     mp_cmd_t* cmd;
     if (!quiet) {
-        // Small hack to display the pause message on the OSD line.
-        // The pause string is: "\n == PAUSE == \r" so we need to
-        // take the first and the last char out
         if (term_osd && !mpctx->sh_video) {
-            char msg[128] = MSGTR_Paused;
-            int mlen = strlen(msg);
-            msg[mlen-1] = '\0';
-            set_osd_msg(OSD_MSG_PAUSE, 1, 0, "%s", msg+1);
+            set_osd_msg(OSD_MSG_PAUSE, 1, 0, MSGTR_Paused);
             update_osd_msg();
         } else
-            mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_Paused);
+            mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n"MSGTR_Paused"\r");
         mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n");
     }
 #ifdef CONFIG_GUI