diff options
author | wm4 <wm4@nowhere> | 2013-09-07 20:31:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-07 20:34:49 +0200 |
commit | dc475728e0fd395e0780a2e41b0dc19af162e383 (patch) | |
tree | 9626e946108810a6c2b7255f5d3a8627adf520e6 /mpvcore/mplayer.c | |
parent | 580e9250111223b33d2e9ac49e9c484fcea5b018 (diff) | |
download | mpv-dc475728e0fd395e0780a2e41b0dc19af162e383.tar.bz2 mpv-dc475728e0fd395e0780a2e41b0dc19af162e383.tar.xz |
find_subfiles: don't auto-load .sub file if .idx file exists
External vobsubs usually come as .idx/.sub pairs. Loading the .idx file
implicitly loads the .sub file, whereas loading the .sub file will kind
of work, but miss important information such as subtitle resolution. Or
in other words, if the .idx file exists, adding the .sub file as track
is useless and confusing.
Explicitly remove .sub file from the auto-load suntitle list in these
cases. Standalone .sub files are still loaded.
We also drop that weird logic that excluded .utf8 files from being
loaded if -subcp was in use. I hope the associated use case didn't make
much sense to begin with. If not, we could still implement it properly,
instead of this weird hack.
Diffstat (limited to 'mpvcore/mplayer.c')
0 files changed, 0 insertions, 0 deletions