mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
driver/record.cpp: check if pcr pid is not 0 before adding to record
Origin commit data
------------------
Commit: ad1a626844
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-08-12 (Mon, 12 Aug 2013)
This commit is contained in:
@@ -164,7 +164,7 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel)
|
|||||||
numpids = 0;
|
numpids = 0;
|
||||||
if (allpids.PIDs.vpid != 0){
|
if (allpids.PIDs.vpid != 0){
|
||||||
psi.addPid(allpids.PIDs.vpid, recMovieInfo->VideoType ? EN_TYPE_AVC : EN_TYPE_VIDEO, 0);
|
psi.addPid(allpids.PIDs.vpid, recMovieInfo->VideoType ? EN_TYPE_AVC : EN_TYPE_VIDEO, 0);
|
||||||
if(allpids.PIDs.pcrpid != allpids.PIDs.vpid){
|
if (allpids.PIDs.pcrpid && (allpids.PIDs.pcrpid != allpids.PIDs.vpid)) {
|
||||||
psi.addPid(allpids.PIDs.pcrpid, EN_TYPE_PCR, 0);
|
psi.addPid(allpids.PIDs.pcrpid, EN_TYPE_PCR, 0);
|
||||||
apids[numpids++]=allpids.PIDs.pcrpid;
|
apids[numpids++]=allpids.PIDs.pcrpid;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user