mkmux: fix language selection for comment when primary languages are not set, fixes #2549
This commit is contained in:
parent
9ce0c5542d
commit
19dbe37cc0
1 changed files with 2 additions and 3 deletions
|
@ -752,10 +752,9 @@ _mk_build_metadata(const dvr_entry_t *de, const epg_broadcast_t *ebc,
|
|||
|
||||
if (comment) {
|
||||
lang = "eng";
|
||||
if ((langs = lang_code_split(NULL))) {
|
||||
if ((langs = lang_code_split(NULL)) && langs[0])
|
||||
lang = tvh_strdupa(langs[0]);
|
||||
free(langs);
|
||||
}
|
||||
free(langs);
|
||||
|
||||
addtag(q, build_tag_string("COMMENT", comment, lang, 0, NULL));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue