1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Added cppcheck target into Makefile.

This commit is contained in:
Rolf Ahrenberg 2011-06-15 17:49:15 +03:00
parent 99d6c0f207
commit bf3fc70d2d
5 changed files with 10 additions and 5 deletions

View File

@ -157,3 +157,4 @@ VDR Plugin 'iptv' Revision History
channel (Thanks to Zdeněk Kopřivík). channel (Thanks to Zdeněk Kopřivík).
- Canonicalized the configuration directory. - Canonicalized the configuration directory.
- Added support for LDFLAGS. - Added support for LDFLAGS.
- Added cppcheck target into Makefile.

View File

@ -130,3 +130,6 @@ dist: $(I18Npo) clean
clean: clean:
@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
cppcheck: $(OBJS)
@cppcheck --enable=information,style,unusedFunction -v -f $(OBJS:%.o=%.c)

View File

@ -372,7 +372,6 @@ bool cIptvDevice::IsBuffering(void)
bool cIptvDevice::GetTSPacket(uchar *&Data) bool cIptvDevice::GetTSPacket(uchar *&Data)
{ {
int Count = 0;
//debug("cIptvDevice::GetTSPacket(%d)\n", deviceIndex); //debug("cIptvDevice::GetTSPacket(%d)\n", deviceIndex);
if (tsBuffer && !IsBuffering()) { if (tsBuffer && !IsBuffering()) {
if (isPacketDelivered) { if (isPacketDelivered) {
@ -381,6 +380,7 @@ bool cIptvDevice::GetTSPacket(uchar *&Data)
// Update buffer statistics // Update buffer statistics
AddBufferStatistic(TS_SIZE, tsBuffer->Available()); AddBufferStatistic(TS_SIZE, tsBuffer->Available());
} }
int Count = 0;
uchar *p = tsBuffer->Get(Count); uchar *p = tsBuffer->Get(Count);
if (p && Count >= TS_SIZE) { if (p && Count >= TS_SIZE) {
if (*p != TS_SYNC_BYTE) { if (*p != TS_SYNC_BYTE) {

View File

@ -91,10 +91,10 @@ void cIptvSectionFilter::New(void)
int cIptvSectionFilter::Filter(void) int cIptvSectionFilter::Filter(void)
{ {
uint8_t neq = 0;
int i;
if (secbuf) { if (secbuf) {
int i;
uint8_t neq = 0;
for (i = 0; i < DMX_MAX_FILTER_SIZE; ++i) { for (i = 0; i < DMX_MAX_FILTER_SIZE; ++i) {
uint8_t local_xor = (uint8_t)(filter_value[i] ^ secbuf[i]); uint8_t local_xor = (uint8_t)(filter_value[i] ^ secbuf[i]);
if (maskandmode[i] & local_xor) if (maskandmode[i] & local_xor)

View File

@ -164,6 +164,7 @@ void cIptvStreamerStatistics::AddStreamerStatistic(long Bytes)
// Buffer statistic class // Buffer statistic class
cIptvBufferStatistics::cIptvBufferStatistics() cIptvBufferStatistics::cIptvBufferStatistics()
: dataBytes(0), : dataBytes(0),
freeSpace(0),
usedSpace(0), usedSpace(0),
timer(), timer(),
mutex() mutex()