Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvb_psi: improve stype logs
  • Loading branch information
perexg committed Nov 8, 2014
1 parent ae95ede commit 34f803a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/input/mpegts/dvb_psi.c
Expand Up @@ -407,7 +407,7 @@ dvb_desc_service_list
for (i = 0; i < len; i += 3) {
sid = (ptr[i] << 8) | ptr[i+1];
stype = ptr[i+2];
tvhdebug(dstr, " service %04X (%d) type %d", sid, sid, stype);
tvhdebug(dstr, " service %04X (%d) type %02X (%d)", sid, sid, stype, stype);
if (bi)
bi->services_count++;
if (mm) {
Expand Down Expand Up @@ -1531,16 +1531,17 @@ dvb_sdt_callback
}
}

tvhtrace("sdt", " type %d name [%s] provider [%s] def_auth [%s]",
stype, sname, sprov, sauth);
tvhtrace("sdt", " type %02X (%d) name [%s] provider [%s] def_auth [%s]",
stype, stype, sname, sprov, sauth);
if (!s) continue;

/* Update service type */
if (stype && s->s_dvb_servicetype != stype) {
int r;
s->s_dvb_servicetype = stype;
save = 1;
tvhtrace("sdt", " type changed (old %i)", s->s_dvb_servicetype);
tvhtrace("sdt", " type changed / old %02X (%i)",
s->s_dvb_servicetype, s->s_dvb_servicetype);

/* Set tvh service type */
if ((r = dvb_servicetype_lookup(stype)) != -1)
Expand Down

0 comments on commit 34f803a

Please sign in to comment.