tmp[0] = '\0';
HTSMSG_FOREACH(f, info) {
if (!(e = htsmsg_field_get_map(f))) continue;
- if ((s = htsmsg_get_str(e, "type")) != NULL) continue;
- tvh_strlcatf(tmp, tmplen, l, "%s%s", l > 0 ? "," : "", s);
+ if ((s = htsmsg_get_str(e, "type")) != NULL)
+ tvh_strlcatf(tmp, tmplen, l, "%s%s", l > 0 ? "," : "", s);
}
return tmp;
}
const source_info_t *si = &ss->ss_si;
streaming_start_t *ss_copy;
const streaming_start_component_t *ssc;
- char res[11], asp[6], sr[6], ch[7];
+ char res[14], asp[14], sr[6], ch[7];
dvr_config_t *cfg = de->de_config;
profile_chain_t *prch = de->de_chain;
htsmsg_t *info, *e;
ip = (void *)in + o->off;
if (!changed) {
HTSMSG_FOREACH(f, vals) {
- if ((s = htsmsg_field_get_str(f)) != NULL)
+ if ((s = htsmsg_field_get_str(f)) == NULL)
continue;
if (strcmp(s, o->id))
continue;
(hc->hc_port != 554 ? 7 : 0) +
(path ? strlen(path) : 1) + 1;
char *buf = alloca(blen);
- char buf2[7];
+ char buf2[11];
char buf_body[size + 3];
if (hc->hc_rtsp_session) {
{
if (hc->hc_access != NULL &&
hc->hc_access->aa_username != NULL &&
- hc->hc_access->aa_username != '\0') {
+ *hc->hc_access->aa_username != '\0') {
http_redirect(hc, "/", &hc->hc_req_args, 0);
return 0;
} else {