episode->season = season;
if (season) {
_epg_season_add_episode(season, episode);
- save |= epg_episode_set_brand(episode, season->brand ?: NULL, changed);
+ epg_episode_set_brand(episode, season->brand ?: NULL, changed);
} else {
- save |= epg_episode_set_brand(episode, NULL, changed);
+ epg_episode_set_brand(episode, NULL, changed);
}
_epg_object_set_updated(episode);
save = 1;
break;
case DVB_DESC_APP_NAME:
titles = htsmsg_create_list();
- while (dlen > 4 && l3 > 4) {
+ while (dlen > 4) {
r = dvb_get_string_with_len(title, sizeof(title), dptr + 3, dlen - 3, "UTF-8", NULL);
if (r < 0) goto dvberr;
tvhtrace(mt->mt_subsys, "%s: lang '%c%c%c' name '%s'", mt->mt_name, dptr[0], dptr[1], dptr[2], title);
/* Start */
pthread_mutex_lock(&iptv_lock);
s = im->mm_iptv_url_raw;
- im->mm_iptv_url_raw = strdup(raw);
+ im->mm_iptv_url_raw = raw ? strdup(raw) : NULL;
if (im->mm_iptv_url_raw) {
im->mm_active = mmi; // Note: must set here else mux_started call
// will not realise we're ready to accept pid open calls
strcpy(result + result_size - 1, str);
result_size += str_len;
} else {
+ str_clear(str);
goto reterr;
}
}
channel_t **chlist;
int idx = 0, count = 0;
char *profile, *hostpath;
- const char *name, *blank, *sort;
- const char *lang = hc->hc_access->aa_lang_ui;
+ const char *name, *blank, *sort, *lang;
if(hc->hc_access == NULL ||
access_verify2(hc->hc_access, ACCESS_STREAMING))
hq = &hc->hc_reply;
+ lang = hc->hc_access->aa_lang_ui;
profile = profile_validate_name(http_arg_get(&hc->hc_req_args, "profile"));
hostpath = http_get_hostpath(hc);
sort = http_arg_get(&hc->hc_req_args, "sort");