Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: filename builder, do not crash when title/subtitle is not define…
…d, fixes #2883
  • Loading branch information
perexg committed May 25, 2015
1 parent c918243 commit 86dd49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dvr/dvr_rec.c
Expand Up @@ -223,12 +223,12 @@ cleanup_filename(dvr_config_t *cfg, char *s)

static const char *dvr_sub_title(const char *id, const void *aux)
{
return lang_str_get(((dvr_entry_t *)aux)->de_title, NULL);
return lang_str_get(((dvr_entry_t *)aux)->de_title, NULL) ?: "";
}

static const char *dvr_sub_subtitle(const char *id, const void *aux)
{
return lang_str_get(((dvr_entry_t *)aux)->de_subtitle, NULL);
return lang_str_get(((dvr_entry_t *)aux)->de_subtitle, NULL) ?: "";
}

static const char *dvr_sub_episode(const char *id, const void *aux)
Expand Down

0 comments on commit 86dd49d

Please sign in to comment.