diff options
author | wm4 <wm4@nowhere> | 2014-11-27 18:57:18 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-12-01 21:05:49 +0100 |
commit | 3d6d7012ff0a815333ab1db2c8a791ac0180fad2 (patch) | |
tree | 522ebc0c721f01fe66fc69f062a7af34f2efb720 /options | |
parent | 3051ff9f251bef4703b02ce299982b1c62f09894 (diff) | |
download | mpv-3d6d7012ff0a815333ab1db2c8a791ac0180fad2.tar.bz2 mpv-3d6d7012ff0a815333ab1db2c8a791ac0180fad2.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 'options')
0 files changed, 0 insertions, 0 deletions