Mercurial > mplayer.hg
comparison mplayer.c @ 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 | c104d493d690 |
children | 16bb5e90205f |
comparison
equal
deleted
inserted
replaced
30617:22aef54d8833 | 30618:c061152a5d84 |
---|---|
3056 #endif /* CONFIG_GUI */ | 3056 #endif /* CONFIG_GUI */ |
3057 | 3057 |
3058 while (player_idle_mode && !filename) { | 3058 while (player_idle_mode && !filename) { |
3059 play_tree_t * entry = NULL; | 3059 play_tree_t * entry = NULL; |
3060 mp_cmd_t * cmd; | 3060 mp_cmd_t * cmd; |
3061 if (mpctx->video_out && vo_config_count) | |
3062 mpctx->video_out->control(VOCTRL_PAUSE, NULL); | |
3061 while (!(cmd = mp_input_get_cmd(0,1,0))) { // wait for command | 3063 while (!(cmd = mp_input_get_cmd(0,1,0))) { // wait for command |
3062 if (mpctx->video_out && vo_config_count) mpctx->video_out->check_events(); | 3064 if (mpctx->video_out && vo_config_count) mpctx->video_out->check_events(); |
3063 usec_sleep(20000); | 3065 usec_sleep(20000); |
3064 } | 3066 } |
3065 switch (cmd->id) { | 3067 switch (cmd->id) { |
3106 } | 3108 } |
3107 filename = play_tree_iter_get_file(mpctx->playtree_iter, 1); | 3109 filename = play_tree_iter_get_file(mpctx->playtree_iter, 1); |
3108 } | 3110 } |
3109 } | 3111 } |
3110 //--------------------------------------------------------------------------- | 3112 //--------------------------------------------------------------------------- |
3113 | |
3114 if (mpctx->video_out && vo_config_count) | |
3115 mpctx->video_out->control(VOCTRL_RESUME, NULL); | |
3111 | 3116 |
3112 if(filename) { | 3117 if(filename) { |
3113 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, | 3118 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_Playing, |
3114 filename_recode(filename)); | 3119 filename_recode(filename)); |
3115 if(use_filename_title && vo_wintitle == NULL) | 3120 if(use_filename_title && vo_wintitle == NULL) |