diff options
author | John Stebbins <[email protected]> | 2015-11-15 14:21:03 -0800 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-11-15 14:21:03 -0800 |
commit | 6ac2175e77baf2dca4803ea7a4792806697ac2b0 (patch) | |
tree | 830cc5df3b822a4385fba62cf1763eaf72c12333 | |
parent | 9550f669e6d939c78eee78241ce2d865490c172f (diff) |
presets: use first audio lang for foreign audio search...
...when a prefered language is not specified.
-rw-r--r-- | libhb/preset.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libhb/preset.c b/libhb/preset.c index 2a63458cd..d2c632d6d 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -930,7 +930,15 @@ int hb_preset_job_add_subtitles(hb_handle_t *h, int title_index, } if (!strcmp(pref_lang, "und")) { - foreign_audio_search = foreign_first_audio = 0; + if (first_audio_lang != NULL) + { + pref_lang = first_audio_lang; + foreign_first_audio = 0; + } + else + { + foreign_audio_search = foreign_first_audio = 0; + } } int track; |