mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
scansdt: check dmx
This commit is contained in:
@@ -69,6 +69,8 @@ bool CSdt::PMTPing(unsigned short pid, unsigned short sid)
|
||||
unsigned char buffer[PMT_SECTION_SIZE];
|
||||
|
||||
cDemux * dmx = new cDemux(dmxnum);
|
||||
bool badservice = false;
|
||||
if(dmx){
|
||||
dmx->Open(DMX_PSI_CHANNEL);
|
||||
|
||||
memset(filter, 0x00, DMX_FILTER_SIZE);
|
||||
@@ -91,15 +93,17 @@ bool CSdt::PMTPing(unsigned short pid, unsigned short sid)
|
||||
ProgramMapSection pmt(buffer);
|
||||
if(0x1fff==pmt.getPcrPid()){
|
||||
ret = false;
|
||||
badservice = false;
|
||||
}else{
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
delete dmx;
|
||||
}
|
||||
#ifdef DEBUG_SDT
|
||||
if(!ret)
|
||||
printf("Ping: PMT-pid 0%x failed\n", pid);
|
||||
printf("Ping: PMT-pid 0%x %s\n", pid,badservice ? "not supportet stream type":"failed");
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user