mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
driver/record.cpp: use CGenPsi class
This commit is contained in:
@@ -156,15 +156,16 @@ record_error_msg_t CRecordInstance::Start(CZapitChannel * channel)
|
|||||||
return RECORD_INVALID_DIRECTORY;
|
return RECORD_INVALID_DIRECTORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CGenPsi psi;
|
||||||
if (allpids.PIDs.vpid != 0)
|
if (allpids.PIDs.vpid != 0)
|
||||||
transfer_pids(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);
|
||||||
|
|
||||||
numpids = 0;
|
numpids = 0;
|
||||||
for (unsigned int i = 0; i < recMovieInfo->audioPids.size(); i++) {
|
for (unsigned int i = 0; i < recMovieInfo->audioPids.size(); i++) {
|
||||||
apids[numpids++] = recMovieInfo->audioPids[i].epgAudioPid;
|
apids[numpids++] = recMovieInfo->audioPids[i].epgAudioPid;
|
||||||
transfer_pids(recMovieInfo->audioPids[i].epgAudioPid, EN_TYPE_AUDIO, recMovieInfo->audioPids[i].atype);
|
psi.addPid(recMovieInfo->audioPids[i].epgAudioPid, EN_TYPE_AUDIO, recMovieInfo->audioPids[i].atype);
|
||||||
}
|
}
|
||||||
genpsi(fd);
|
psi.genpsi(fd);
|
||||||
|
|
||||||
if ((StreamVTxtPid) && (allpids.PIDs.vtxtpid != 0))
|
if ((StreamVTxtPid) && (allpids.PIDs.vtxtpid != 0))
|
||||||
apids[numpids++] = allpids.PIDs.vtxtpid;
|
apids[numpids++] = allpids.PIDs.vtxtpid;
|
||||||
|
Reference in New Issue
Block a user