changeset 30618:c061152a5d84

Send VOCTRL_PAUSE/VOCTRL_RESUME events also when pausing for idle mode. This makes the vos try to redraw the video if they can.
author reimar
date Fri, 19 Feb 2010 23:35:21 +0000
parents 22aef54d8833
children 2fa6d8411b07
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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));