1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 22:20:22 +00:00
mpv/player
wm4 88249baf5b player: fix crashes when adding external tracks before loading main file
Adding an external audio track before loading the main file didn't work
right. For one, mp_switch_track() assumes it is called after the main
file is loaded. (The difference is that decoders are only initialized
once the main file is loaded, and we avoid doing this before that for
whatever reason.)

To avoid further messiness, just allow mp_switch_track() to be called at
any time. Also make it do what mp_mark_user_track_selection() did, since
the latter requires current_track to be set. (One could probably simply
allow current_track to be set at this point, but it'd interfere with
default track selection anyway and thus would be pointless.)

Fixes #1984.
2015-05-26 14:01:23 +02:00
..
lua input: allow - as separator between commands, instead of _ 2015-05-25 21:59:44 +02:00
audio.c audio: fix resync issue different 2015-05-19 23:23:17 +02:00
client.c player: fix crashes when adding external tracks before loading main file 2015-05-26 14:01:23 +02:00
client.h vo_opengl_cb: don't render OSD while VO is not created 2015-03-23 16:32:59 +01:00
command.c player: fix crashes when adding external tracks before loading main file 2015-05-26 14:01:23 +02:00
command.h client API: add glue for making full use of mpv_command_node() 2015-04-20 23:00:12 +02:00
configfiles.c player: reuse a function 2015-05-09 16:48:08 +02:00
core.h player: fix crashes when adding external tracks before loading main file 2015-05-26 14:01:23 +02:00
discnav.c command: disc-mouse-on-button property 2015-04-21 00:54:29 +09:00
loadfile.c player: fix crashes when adding external tracks before loading main file 2015-05-26 14:01:23 +02:00
lua.c path: make mp_path_join accept normal C strings 2015-05-09 15:26:47 +02:00
main.c Always block SIGPIPE globally 2015-05-11 17:38:35 +02:00
misc.c Update license headers 2015-04-13 12:10:01 +02:00
osd.c video: do not use MP_NOPTS_VALUE for A/V difference 2015-05-24 23:27:23 +02:00
playloop.c player: add function to compute past frame durations 2015-05-24 23:27:23 +02:00
screenshot.c path: make mp_path_join accept normal C strings 2015-05-09 15:26:47 +02:00
screenshot.h client API: add a screenshot_raw command 2015-04-20 23:11:03 +02:00
scripting.c path: make mp_path_join accept normal C strings 2015-05-09 15:26:47 +02:00
sub.c Update license headers 2015-04-13 12:10:01 +02:00
video.c video: do not use MP_NOPTS_VALUE for A/V difference 2015-05-24 23:27:23 +02:00