Agent-Logs-Url: https://github.com/tvheadend/tvheadend/sessions/
21b0e984-5867-49d1-8142-
861f4b00d7c4
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
}
case PT_U32: {
if (p->intextra && INTEXTRA_IS_SPLIT(p->intextra)) {
- const char *s;
if (!(snew = htsmsg_field_get_str(f)))
continue;
- u32 = atol(snew) * p->intextra;
- if ((s = strchr(snew, '.')) != NULL)
- u32 += (atol(s + 1) % p->intextra);
+ u32 = (uint32_t)prop_intsplit_from_str(snew, p->intextra);
} else {
if (htsmsg_field_get_u32(f, &u32))
continue;