diff options
author | wm4 <wm4@nowhere> | 2014-11-27 18:57:18 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-27 18:57:18 +0100 |
commit | 78f0cb92815812f058676e1d3b0fc723c11f1d7f (patch) | |
tree | ec626970837b41a13d37948f38fbe69f2f60cfa1 /talloc.h | |
parent | a3026c96408ec640e18dfafe06710919ceb89494 (diff) | |
download | mpv-78f0cb92815812f058676e1d3b0fc723c11f1d7f.tar.bz2 mpv-78f0cb92815812f058676e1d3b0fc723c11f1d7f.tar.xz |
command: sub_add with "auto" should not always select a subtitle track
Running "sub_add file.srt auto" during hook execution automatically
selected the first added track. This happened because all tracks added
with sub_add are marked as "external", and external subtitles are always
selected by default.
Fix this by negating the "external" flag when autoselecting subtitles
during loading. The no_default flag exists for this purpose; it was
probably added for libquvi originally, where we had the same issue.
Diffstat (limited to 'talloc.h')
0 files changed, 0 insertions, 0 deletions