Project

General

Profile

Bug #241 ยป ttxtsubs-CI-AddPid.patch

mjl, 02/14/2010 02:49 AM

View differences:

ci.c
for (const int *Dpid = Channel->Dpids(); *Dpid; Dpid++)
AddPid(Channel->Sid(), *Dpid, STREAM_TYPE_DOLBY);
}
if (Channel->Tpid()){
AddPid(Channel->Sid(), Channel->Tpid(), STREAM_TYPE_DOLBY);
}
}
#define QUERY_REPLY_WAIT 100 // ms to wait between checks for a reply
......
CaPmt.AddPid(*Apid, STREAM_TYPE_AUDIO);
for (const int *Dpid = Channel->Dpids(); *Dpid; Dpid++)
CaPmt.AddPid(*Dpid, STREAM_TYPE_DOLBY);
if (Channel->Tpid() && Setup.RecordTtxtSubtitles) {
CaPmt.AddPid(Channel->Tpid(), STREAM_TYPE_DOLBY); // FIXME: STREAM_TYPE_DOLBY should probably be renamed STREAM_TYPE_PRIVATE
}
cas->SendPMT(&CaPmt);
cTimeMs Timeout(QUERY_REPLY_TIMEOUT);
do {
    (1-1/1)