Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mkmux: fix language selection for comment when primary languages are …
…not set, fixes #2549
  • Loading branch information
perexg committed Dec 12, 2014
1 parent 9ce0c55 commit 19dbe37
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/muxer/tvh/mkmux.c
Expand Up @@ -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));
}
Expand Down

0 comments on commit 19dbe37

Please sign in to comment.