Proposal: a more reasonable order in compare_track #6071
Labels
core:file
core:option-param-conf
config, parameters, properties, options, shortcuts
meta:feature-request
There have been very few discussions about what is the best default for track auto-selection mechanism, and previous issues such as #3777, #5127 and #5433 usually result in no change. One big reason I think is, most people will not encounter external files or multiple tracks. The other reason I guess is, most of the core devs are already comfortable with the current behavior or didn't find any cases that current auto-selection mechanism might make trouble, so they decided nothing should be changed.
Here is the current order of comparison:
mpv/player/loadfile.c
Lines 315 to 332 in d5cad85
compare_track
was introduced in 0f15592. The external file auto-load and selection was a feature.Couldn't trace back further to see why "external" precedes "lang" (this is the point that most conflicts arise), but I do see the intentions in the design:
But it will also lead to unexpected behavior when:
So I think the track auto-selection should not always pick up external tracks blindly. It also happens that users may want the tracks loaded and change the track being played during the playback time. Commit 34cf655 supports the idea. (Otherwise what is
--external-files
for?)I propose:
In this case, most of the users won't get affected. People who care about this issue, can name their subtitle/audio files to explicitly include language codes, so that they get external files auto-loaded and get the desired auto-selected track simultaneously.
The text was updated successfully, but these errors were encountered: