0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/player
wm4 caf228b218 player: make external subtitle auto-loading stricter
By default --sub-auto uses "exact". This was far from an "exact" match,
because it added anything that started with the video filename (without
extension), and seemed to end in something that looked like a language
code.

Make this stricter. "exact" still tolerate a language code, but the
video's filename must come before it without any unknown extra
characters. This may not load subtitles in some situations where it
previously did, and where the user might think that the naming
convention is such that it should be considered an exact match.

The subtitle priority sorting seems a bit worthless. I suppose it may
have some value in higher "fuzz" modes (like --sub-auto=fuzzy).

Also remove the mysterious "prio += prio;" line. I probably shouldn't
have checked, but it goes back to commit f16fa9d31 (2003), where someone
wanted to "refine" the priority without changing the rest of the code or
something.

Mostly untested, so have fun.

Fixes: #7702
2020-05-09 23:31:33 +02:00
..
javascript js: osd-overlay update: return the command result (match 7a76b577) 2020-03-07 12:37:35 +02:00
lua lua: restore change detection with legacy OSD function 2020-05-01 00:59:57 +02:00
audio.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
client.c client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c video: make OSD/subtitle bitmaps refcounted (sort of) 2020-04-26 23:34:32 +02:00
command.h command: use client IDs for hooks 2020-03-26 23:40:25 +01:00
configfiles.c player: fix minor coding style issue 2020-01-26 14:29:48 +01:00
core.h player: remove duplicated track option setter code 2020-04-15 17:10:01 +02:00
external_files.c player: make external subtitle auto-loading stricter 2020-05-09 23:31:33 +02:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: make wait_event autofree 2020-03-22 00:53:30 +02:00
loadfile.c player: remove duplicated track option setter code 2020-04-15 17:10:01 +02:00
lua.c lua: wrap existing allocator instead of reimplementing it 2020-04-09 02:21:09 +02:00
main.c player, ta: remove use of an old macro 2020-04-13 15:56:27 +02:00
misc.c player: slightly improve use of secondary track selection limits 2020-04-15 17:04:00 +02:00
osd.c f_decoder_wrapper: replace most public fields with setters/getters 2020-02-29 01:23:20 +01:00
playloop.c player: round position percentage to the nearest integer 2020-05-01 20:48:16 +02:00
screenshot.c screenshot: fix typo in comment 2020-02-07 13:42:42 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
sub.c player: slightly improve use of secondary track selection limits 2020-04-15 17:04:00 +02:00
video.c video: remove another redundant wakeup 2020-04-10 01:33:38 +02:00