diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-06 17:57:16 +0100 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-01-09 20:33:54 +0200 |
commit | b51e1d427eae6c3604e669f220d81516ff833787 (patch) | |
tree | 7b2b883fb2820f60d3a059d485268d8a24b2ae3f /mplayer.c | |
parent | 245773e56954a926033293210c781e5fb71eb651 (diff) | |
download | mpv-b51e1d427eae6c3604e669f220d81516ff833787.tar.bz2 mpv-b51e1d427eae6c3604e669f220d81516ff833787.tar.xz |
osd: always display pause icon when frame stepping
When the OSD was enabled and the player was paused by executing the
frame_step command, the OSD still displayed the icon indicating
playback. Fix this and always set the proper icon when the pause
state is changed.
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2977,6 +2977,7 @@ void pause_player(struct MPContext *mpctx) mpctx->paused = 1; mpctx->step_frames = 0; mpctx->time_frame -= get_relative_time(mpctx); + mpctx->osd_function = OSD_PAUSE; if (mpctx->video_out && mpctx->sh_video && mpctx->video_out->config_ok) vo_control(mpctx->video_out, VOCTRL_PAUSE, NULL); @@ -2990,6 +2991,8 @@ void unpause_player(struct MPContext *mpctx) if (!mpctx->paused) return; mpctx->paused = 0; + if (!mpctx->step_frames) + mpctx->osd_function = OSD_PLAY; if (mpctx->ao && mpctx->sh_audio) ao_resume(mpctx->ao); |