Fix sign-ness bug when reading PSI stream details for CAID's that we don't know the name for
Weird...
This commit is contained in:
parent
a6bb290f4d
commit
58b120f6f2
1 changed files with 2 additions and 2 deletions
|
@ -754,7 +754,7 @@ psi_load_transport_settings(htsmsg_t *m, th_transport_t *t)
|
|||
th_stream_t *st;
|
||||
streaming_component_type_t type;
|
||||
const char *v;
|
||||
uint32_t pid, i;
|
||||
uint32_t pid;
|
||||
|
||||
if(!htsmsg_get_u32(m, "pcr", &u32))
|
||||
t->tht_pcr_pid = u32;
|
||||
|
@ -791,7 +791,7 @@ psi_load_transport_settings(htsmsg_t *m, th_transport_t *t)
|
|||
st->st_frame_duration = u32;
|
||||
|
||||
if((v = htsmsg_get_str(c, "caid")) != NULL) {
|
||||
i = str2val(v, caidnametab);
|
||||
int i = str2val(v, caidnametab);
|
||||
st->st_caid = i < 0 ? strtol(v, NULL, 0) : i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue