diff options
author | John Stebbins <[email protected]> | 2019-09-09 15:03:37 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-09-10 09:09:52 -0700 |
commit | e88c6d5b7aa709f6c76f94c26bf6ac60d5f2dc12 (patch) | |
tree | c0f5a33c35e8e80682963ebdd79ac7b0c06777c5 /libhb | |
parent | ed346b4659a7c353cc3f0aee745344e84c051e27 (diff) |
preset: change last ditch audio selection behavior
Previously, it added "any" audio if the output track list was empty.
Now only adds "any" audio if AudioLanguageList is empty.
This allow e.g. "English or none" audio selections. If the user wants
"English or any", they can specify [English, Any] in AudioLanguageList.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/preset.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libhb/preset.c b/libhb/preset.c index 057de4ec0..f82dba7f4 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -864,10 +864,8 @@ int hb_preset_job_add_audio(hb_handle_t *h, int title_index, add_audio_for_lang(list, preset, title, mux, copy_mask, fallback, lang, behavior, mode, track_dict); } - // If no audios found, try "any" language option - // This can happen if AudioLanguageList is empty or if no audio - // matches the users preferred languages in AudioLanguageList - if (hb_value_array_len(list) <= 0) + // If AudioLanguageList is empty, try "any" language option + if (count <= 0) { add_audio_for_lang(list, preset, title, mux, copy_mask, fallback, "any", behavior, mode, track_dict); |