mirror of
				https://github.com/rofafor/vdr-plugin-iptv.git
				synced 2023-10-10 11:37:03 +00:00 
			
		
		
		
	Added cppcheck target into Makefile.
This commit is contained in:
		
							
								
								
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							@@ -157,3 +157,4 @@ VDR Plugin 'iptv' Revision History
 | 
			
		||||
  channel (Thanks to Zdeněk Kopřivík).
 | 
			
		||||
- Canonicalized the configuration directory.
 | 
			
		||||
- Added support for LDFLAGS.
 | 
			
		||||
- Added cppcheck target into Makefile.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							@@ -130,3 +130,6 @@ dist: $(I18Npo) clean
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	@-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ $(PODIR)/*.mo $(PODIR)/*.pot
 | 
			
		||||
 | 
			
		||||
cppcheck: $(OBJS)
 | 
			
		||||
	@cppcheck --enable=information,style,unusedFunction -v -f $(OBJS:%.o=%.c)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								device.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								device.c
									
									
									
									
									
								
							@@ -215,7 +215,7 @@ bool cIptvDevice::SetChannelDevice(const cChannel *Channel, bool LiveView)
 | 
			
		||||
  cIptvTransponderParameters itp(Channel->Parameters());
 | 
			
		||||
 | 
			
		||||
  debug("cIptvDevice::SetChannelDevice(%d)\n", deviceIndex);
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
  if (isempty(itp.Address())) {
 | 
			
		||||
     error("Unrecognized IPTV address: %s", Channel->Parameters());
 | 
			
		||||
     return false;
 | 
			
		||||
@@ -372,7 +372,6 @@ bool cIptvDevice::IsBuffering(void)
 | 
			
		||||
 | 
			
		||||
bool cIptvDevice::GetTSPacket(uchar *&Data)
 | 
			
		||||
{
 | 
			
		||||
  int Count = 0;
 | 
			
		||||
  //debug("cIptvDevice::GetTSPacket(%d)\n", deviceIndex);
 | 
			
		||||
  if (tsBuffer && !IsBuffering()) {
 | 
			
		||||
     if (isPacketDelivered) {
 | 
			
		||||
@@ -381,6 +380,7 @@ bool cIptvDevice::GetTSPacket(uchar *&Data)
 | 
			
		||||
        // Update buffer statistics
 | 
			
		||||
        AddBufferStatistic(TS_SIZE, tsBuffer->Available());
 | 
			
		||||
        }
 | 
			
		||||
     int Count = 0;
 | 
			
		||||
     uchar *p = tsBuffer->Get(Count);
 | 
			
		||||
     if (p && Count >= TS_SIZE) {
 | 
			
		||||
        if (*p != TS_SYNC_BYTE) {
 | 
			
		||||
 
 | 
			
		||||
@@ -91,10 +91,10 @@ void cIptvSectionFilter::New(void)
 | 
			
		||||
 | 
			
		||||
int cIptvSectionFilter::Filter(void)
 | 
			
		||||
{
 | 
			
		||||
  uint8_t neq = 0;
 | 
			
		||||
  int i;
 | 
			
		||||
 | 
			
		||||
  if (secbuf) {
 | 
			
		||||
     int i;
 | 
			
		||||
     uint8_t neq = 0;
 | 
			
		||||
 | 
			
		||||
     for (i = 0; i < DMX_MAX_FILTER_SIZE; ++i) {
 | 
			
		||||
         uint8_t local_xor = (uint8_t)(filter_value[i] ^ secbuf[i]);
 | 
			
		||||
         if (maskandmode[i] & local_xor)
 | 
			
		||||
 
 | 
			
		||||
@@ -164,6 +164,7 @@ void cIptvStreamerStatistics::AddStreamerStatistic(long Bytes)
 | 
			
		||||
// Buffer statistic class
 | 
			
		||||
cIptvBufferStatistics::cIptvBufferStatistics()
 | 
			
		||||
: dataBytes(0),
 | 
			
		||||
  freeSpace(0),
 | 
			
		||||
  usedSpace(0),
 | 
			
		||||
  timer(),
 | 
			
		||||
  mutex()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user