summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-03-31 02:50:34 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-04-02 06:51:26 +0300
commit7db643095995ddf625af670f6e07a61bf25d3a94 (patch)
tree1ea4d45b3b1a2095b3a2aaa43f8f9df28417c1f8 /mplayer.c
parent861d6d2bd9b46c8644b7d8683d101157cd459927 (diff)
downloadmpv-7db643095995ddf625af670f6e07a61bf25d3a94.tar.bz2
mpv-7db643095995ddf625af670f6e07a61bf25d3a94.tar.xz
VO: Don't reset pause status in VO config() functions
Many VOs kept track of pause status, but reset the value when their config() function was called. However it can be called while playback stays in pause mode. Modify the VOs to not change anything in config(). Also send the VO either VOCTRL_PAUSE or VOCTRL_RESUME when the playback of a new file is starting to make sure they have the right status.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 84b9d6ad0a..6e49876afe 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -3984,6 +3984,10 @@ if (mpctx->stream->type == STREAMTYPE_DVDNAV) {
mpctx->drop_message_shown = 0;
mpctx->update_video_immediately = true;
mpctx->total_avsync_change = 0;
+ // Make sure VO knows current pause state
+ if (mpctx->sh_video)
+ vo_control(mpctx->video_out, mpctx->paused ? VOCTRL_PAUSE : VOCTRL_RESUME,
+ NULL);
while(!mpctx->stop_play){
float aq_sleep_time=0;