genpsi: add pcr pid handling

This commit is contained in:
Jacek Jendrzej
2013-08-01 17:54:51 +02:00
parent 036ef3399a
commit 7a3b584920
4 changed files with 25 additions and 10 deletions

View File

@@ -389,6 +389,11 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid)
}
}
}
//add pcr pid
if(channel->getPcrPid() != channel->getVideoPid()){
pids.insert(channel->getPcrPid());
psi.addPid(channel->getPcrPid(), EN_TYPE_PCR, 0);
}
psi.genpsi(fd);
return !pids.empty();