diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-02-15 18:38:43 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2011-02-15 18:38:43 +0200 |
commit | f7d8bba686c1b5b2a59a2622fe26f0e1cfbcefd4 (patch) | |
tree | 0ebbf1b97e77ed1181d7f292df03f9d7f01bdf50 /mplayer.c | |
parent | ba3dab46397aa2f65f7678bce88d7bf08fdb6514 (diff) | |
download | mpv-f7d8bba686c1b5b2a59a2622fe26f0e1cfbcefd4.tar.bz2 mpv-f7d8bba686c1b5b2a59a2622fe26f0e1cfbcefd4.tar.xz |
cleanup: mplayer.c: clean up pause_loop() a bit
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -2874,18 +2874,18 @@ static void pause_loop(struct MPContext *mpctx) set_osd_tmsg(OSD_MSG_PAUSE, 1, 0, " ===== PAUSE ====="); update_osd_msg(mpctx); } else - mp_msg(MSGT_CPLAYER, MSGL_STATUS, "%c%s%c", - '\n', mp_gtext(" ===== PAUSE ====="), '\r'); + mp_msg(MSGT_CPLAYER, MSGL_STATUS, "\n%s\r", + mp_gtext(" ===== PAUSE =====")); mp_msg(MSGT_IDENTIFY, MSGL_INFO, "ID_PAUSED\n"); } while ( (cmd = mp_input_get_cmd(mpctx->input, 20, 1)) == NULL || cmd->id == MP_CMD_SET_MOUSE_POS || cmd->pausing == 4) { if (cmd) { - cmd = mp_input_get_cmd(mpctx->input, 0, 0); - run_command(mpctx, cmd); - mp_cmd_free(cmd); - continue; + cmd = mp_input_get_cmd(mpctx->input, 0, 0); + run_command(mpctx, cmd); + mp_cmd_free(cmd); + continue; } if (mpctx->sh_video && mpctx->video_out) vo_check_events(mpctx->video_out); @@ -2894,11 +2894,11 @@ static void pause_loop(struct MPContext *mpctx) vf_menu_pause_update(vf_menu); #endif usec_sleep(20000); - update_osd_msg(mpctx); - int hack = vo_osd_changed(0); - vo_osd_changed(hack); - if (hack) - break; + update_osd_msg(mpctx); + int hack = vo_osd_changed(0); + vo_osd_changed(hack); + if (hack) + break; #ifdef CONFIG_STREAM_CACHE if (!opts->quiet && stream_cache_size > 0) { int new_cache_fill = cache_fill_status(mpctx->stream); |