mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 10:51:05 +02:00
sectionsd: remove newline from SIsectionTIME message
Origin commit data
------------------
Commit: 7eaa7575d0
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-02-17 (Sun, 17 Feb 2013)
This commit is contained in:
@@ -174,12 +174,18 @@ void SIsectionTIME::parse(uint8_t *buf)
|
|||||||
if(tdt.getSectionLength() < 5)
|
if(tdt.getSectionLength() < 5)
|
||||||
return;
|
return;
|
||||||
dvbtime = parseDVBtime(tdt.getUtcTimeMjd(), tdt.getUtcTimeBcd());
|
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;
|
parsed = true;
|
||||||
} else {
|
} else {
|
||||||
TimeOffsetSection tot(buf);
|
TimeOffsetSection tot(buf);
|
||||||
dvbtime = parseDVBtime(tot.getUtcTimeMjd(), tot.getUtcTimeBcd());
|
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();
|
const DescriptorList &dlist = *tot.getDescriptors();
|
||||||
for (DescriptorConstIterator dit = dlist.begin(); dit != dlist.end(); ++dit) {
|
for (DescriptorConstIterator dit = dlist.begin(); dit != dlist.end(); ++dit) {
|
||||||
uint8_t dtype = (*dit)->getTag();
|
uint8_t dtype = (*dit)->getTag();
|
||||||
|
Reference in New Issue
Block a user