mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
sectionsd: remove newline from SIsectionTIME message
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
This commit is contained in:
committed by
Jacek Jendrzej
parent
e7dd3083e6
commit
f8cd0ac2f7
@@ -174,12 +174,18 @@ void SIsectionTIME::parse(uint8_t *buf)
|
||||
if(tdt.getSectionLength() < 5)
|
||||
return;
|
||||
dvbtime = parseDVBtime(tdt.getUtcTimeMjd(), tdt.getUtcTimeBcd());
|
||||
xcprintf("SIsectionTIME::parse: TDT time: %s", ctime(&dvbtime));
|
||||
char *ct = ctime(&dvbtime);
|
||||
/* ctime() appends a useless \n... */
|
||||
ct[strlen(ct) - 1] = 0;
|
||||
/* ...and xcprintf adds another \n... */
|
||||
xcprintf("SIsectionTIME::parse: TDT time: %s", ct);
|
||||
parsed = true;
|
||||
} else {
|
||||
TimeOffsetSection tot(buf);
|
||||
dvbtime = parseDVBtime(tot.getUtcTimeMjd(), tot.getUtcTimeBcd());
|
||||
xcprintf("SIsectionTIME::parse: TOT time: %s", ctime(&dvbtime));
|
||||
char *ct = ctime(&dvbtime);
|
||||
ct[strlen(ct) - 1] = 0;
|
||||
xcprintf("SIsectionTIME::parse: TOT time: %s", ct);
|
||||
const DescriptorList &dlist = *tot.getDescriptors();
|
||||
for (DescriptorConstIterator dit = dlist.begin(); dit != dlist.end(); ++dit) {
|
||||
uint8_t dtype = (*dit)->getTag();
|
||||
|
Reference in New Issue
Block a user