genpsi: add pcr pid handling

Origin commit data
------------------
Commit: 7a3b584920
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-08-01 (Thu, 01 Aug 2013)
This commit is contained in:
Jacek Jendrzej
2013-08-01 17:54:51 +02:00
parent 8f3db3d809
commit 4746f01252
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();