Postby Razor512 » 22 Feb 2019 07:15
Sorry for not being more clear.
The basic idea was to have a preferred audio and subtitle language, but have some type of if-this-then-that kind of function where for example for people who play media of multiple languages they may want English subtitles when the audio is in a foreign language, but in cases when the audio is in English, the user may not want the English subtitles.
Such a feature can allow a user to have a value entered both for preferred audio language and subtitle language. In My case, I would set both to English. Now imagine I play a video file where the audio track is in a different language, but it has English subtitles, then I want VLC to enable the English subtitles.
But on the other hand if I play something with an English audio track, Even though I have the preferred subtitle language set to English, In that situation, Ihave no need for the subtitles as the audio is already in English. My request is basically seeing if it is possible for VLC to check the language of both and if both match, disable the subtitles.
Think of it like flow chart when deciding whether to enable subtitles.
It will do a check,
If audio track of the preferred language is available, then disable subtitles.
If audio track is not available in the preferred language, then enable subtitle track of the preferred language.