summaryrefslogtreecommitdiffstats
path: root/core/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-04 01:16:55 +0200
committerwm4 <wm4@nowhere>2013-04-04 01:16:55 +0200
commitf3c26b6ab40ab91853bed51045ffeab96e2fde01 (patch)
tree70c0d9e49e51740815a988c164cbae973d8b6871 /core/mp_core.h
parent840890abdd3f094c1004b5b6db1c5d321d9c9344 (diff)
downloadmpv-f3c26b6ab40ab91853bed51045ffeab96e2fde01.tar.bz2
mpv-f3c26b6ab40ab91853bed51045ffeab96e2fde01.tar.xz
mplayer: fix framestepping on ordered chapter segment boundaries
Trying to step over a segment boundary didn't work, and the video was stuck at the end of the current chapter. At this point, both video and audio of the segment has ended, and the segment switching code is going to call seek() to go to the next segment (the part of the code in run_playloop that uses end_is_chapter). However, this seek() is not called if playback is paused, and the framestepping code always paused before this code is run. Move the framestepping code below the chapter switching code. The added restart_playback condition makes sure the code is called only after at least one video frame has been shown. Also don't reset the framestep counter after seek. It's not needed, and removing it prevents full unpausing when stepping over a segment boundary. This also terminates playback when frame stepping at the end of the file. The --keep-open option can be used to get the old behavior.
Diffstat (limited to 'core/mp_core.h')
0 files changed, 0 insertions, 0 deletions