summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-19 23:35:21 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-19 23:35:21 +0000
commit7afaac3a1ff7d8e49fc995e1d40db514017b93c7 (patch)
treea39c4cb530f83dfd15ea6436f513f4071580565d /mplayer.c
parentdd79cbf17bb6cff7de9f54d2b0082633015f772c (diff)
downloadmpv-7afaac3a1ff7d8e49fc995e1d40db514017b93c7.tar.bz2
mpv-7afaac3a1ff7d8e49fc995e1d40db514017b93c7.tar.xz
Send VOCTRL_PAUSE/VOCTRL_RESUME events also when pausing for idle mode.
This makes the vos try to redraw the video if they can. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30660 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 29f4e42d48..ca51a1a3c6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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));