[MPlayer-cvslog] r30660 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Feb 20 00:35:21 CET 2010


Author: reimar
Date: Sat Feb 20 00:35:21 2010
New Revision: 30660

Log:
Send VOCTRL_PAUSE/VOCTRL_RESUME events also when pausing for idle mode.
This makes the vos try to redraw the video if they can.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Fri Feb 19 22:52:29 2010	(r30659)
+++ trunk/mplayer.c	Sat Feb 20 00:35:21 2010	(r30660)
@@ -3058,6 +3058,8 @@ if(!noconsolecontrols && !slave_mode){
 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 @@ while (player_idle_mode && !filename) {
 }
 //---------------------------------------------------------------------------
 
+    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));


More information about the MPlayer-cvslog mailing list