Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: api - fix the crash when no language is set
  • Loading branch information
perexg committed Jul 4, 2015
1 parent 4937bd2 commit 77364a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api_dvr.c
Expand Up @@ -155,14 +155,14 @@ api_dvr_entry_create
}

s1 = htsmsg_get_str(conf, "disp_title");
if (s1 && !htsmsg_get_map(conf, "title")) {
if (s1 && lang && !htsmsg_get_map(conf, "title")) {
m = htsmsg_create_map();
htsmsg_add_str(m, lang, s1);
htsmsg_add_msg(conf, "title", m);
}

s1 = htsmsg_get_str(conf, "disp_subtitle");
if (s1 && !htsmsg_get_map(conf, "subtitle")) {
if (s1 && lang && !htsmsg_get_map(conf, "subtitle")) {
m = htsmsg_create_map();
htsmsg_add_str(m, lang, s1);
htsmsg_add_msg(conf, "subtitle", m);
Expand Down

0 comments on commit 77364a6

Please sign in to comment.