# HG changeset patch # User reimar # Date 1266622521 0 # Node ID c061152a5d84b54118f6b2c55fa5ae4a98ff50de # Parent 22aef54d8833357085002269b9fbaf6169472f35 Send VOCTRL_PAUSE/VOCTRL_RESUME events also when pausing for idle mode. This makes the vos try to redraw the video if they can. diff -r 22aef54d8833 -r c061152a5d84 mplayer.c --- a/mplayer.c Fri Feb 19 21:52:29 2010 +0000 +++ b/mplayer.c Fri Feb 19 23:35:21 2010 +0000 @@ -3058,6 +3058,8 @@ while (player_idle_mode && !filename) { play_tree_t * entry = NULL; mp_cmd_t * cmd; + if (mpctx->video_out && vo_config_count) + mpctx->video_out->control(VOCTRL_PAUSE, NULL); while (!(cmd = mp_input_get_cmd(0,1,0))) { // wait for command if (mpctx->video_out && vo_config_count) mpctx->video_out->check_events(); usec_sleep(20000); @@ -3109,6 +3111,9 @@ } //--------------------------------------------------------------------------- + if (mpctx->video_out && vo_config_count) + mpctx->video_out->control(VOCTRL_RESUME, NULL); + if(filename) { mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, filename_recode(filename));