comparison 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
comparison
equal deleted inserted replaced
32729:49dd2f27d5d9 32730:736b22f11e00
2474 2474
2475 static void pause_loop(void) 2475 static void pause_loop(void)
2476 { 2476 {
2477 mp_cmd_t* cmd; 2477 mp_cmd_t* cmd;
2478 if (!quiet) { 2478 if (!quiet) {
2479 // Small hack to display the pause message on the OSD line.
2480 // The pause string is: "\n == PAUSE == \r" so we need to
2481 // take the first and the last char out
2482 if (term_osd && !mpctx->sh_video) { 2479 if (term_osd && !mpctx->sh_video) {
2483 char msg[128] = MSGTR_Paused; 2480 set_osd_msg(OSD_MSG_PAUSE, 1, 0, MSGTR_Paused);
2484 int mlen = strlen(msg);
2485 msg[mlen-1] = '\0';
2486 set_osd_msg(OSD_MSG_PAUSE, 1, 0, "%s", msg+1);
2487 update_osd_msg(); 2481 update_osd_msg();
2488 } else 2482 } else
2489 mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_Paused); 2483 mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n"MSGTR_Paused"\r");
2490 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n"); 2484 mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n");
2491 } 2485 }
2492 #ifdef CONFIG_GUI 2486 #ifdef CONFIG_GUI
2493 if (use_gui) 2487 if (use_gui)
2494 guiGetEvent(guiCEvent, (char *)guiSetPause); 2488 guiGetEvent(guiCEvent, (char *)guiSetPause);