1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-06 22:28:01 +00:00
mpv/player
wm4 61efe87e48 player: fix regression with ordered chapters
Broken by commit 1301a907. This commit added demuxer threading, and
changed some other things to make them simpler and more orthogonal. One
of these things was ntofications about streams that appear during
playback. That's an obscure corner case, but the change made handling of
it as natural as normal initialization.

This didn't work for two reasons:
1. When playing an ordered chapters file where the initial segment was
not from the main file, its streams were added to the track list. So
they were printed twice, and switching to the next segment didn't work,
because the right streams were not selected.
2. EDL, CUE, as well as possibly certain Matroska files don't have any
data or tracks in the "main" demuxer, so normally the first segment is
picked for the track list. This was simply broken.

Fix by sprinkling the code with various hacks.
2014-07-20 20:13:08 +02:00
..
lua
timeline
audio.c
client.c
client.h
command.c command: potentially fix dvd angle setting 2014-07-20 20:13:07 +02:00
command.h
configfiles.c
core.h player: fix regression with ordered chapters 2014-07-20 20:13:08 +02:00
discnav.c
loadfile.c player: fix regression with ordered chapters 2014-07-20 20:13:08 +02:00
lua.c
main_fn.c
main.c
misc.c
osd.c player: remove the last instances of polling 2014-07-18 15:04:46 +02:00
playloop.c player: don't wait forever with --cache-pause-below behavior 2014-07-20 00:16:43 +02:00
screenshot.c
screenshot.h
scripting.c
sub.c dvd, bluray, cdda: add demux_disc containing all related hacks 2014-07-05 17:07:15 +02:00
video.c video: use symbolic constants instead of magic integers 2014-07-18 15:11:21 +02:00