diff options
author | wm4 <wm4@nowhere> | 2015-02-22 19:06:21 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-22 19:06:21 +0100 |
commit | 53867aa9d834fd6a6314803655bd4c444d0e1df4 (patch) | |
tree | db31957c38a24f0fe8ebc2129dba161d1cdd979c /player/osd.c | |
parent | 0466ce2f98ef1cdba264c016daa1061e797e1b91 (diff) | |
download | mpv-53867aa9d834fd6a6314803655bd4c444d0e1df4.tar.bz2 mpv-53867aa9d834fd6a6314803655bd4c444d0e1df4.tar.xz |
player: fix demuxer lifetime management
Commit f54220d9 attempted to improve this, but it got worse. Now there
was a crash when ytdl_hook.lua added external tracks. This happened
because close_unused_demuxers() assumed that sources[0] was the main
demuxer (so that it didn't close it). This assumption failed, because
the ytdl script can add external tracks before the main file is loaded.
The easy fix would have been to check for master_demuxer, and not i==0.
But instead give up on the old idea, make some stricter assumptions how
demuxers and external tracks map, and simplify the code.
Diffstat (limited to 'player/osd.c')
0 files changed, 0 insertions, 0 deletions