Skip to content

Commit

Permalink
Extract caption service descriptors in the PMT program info.
Browse files Browse the repository at this point in the history
The caption service descriptors are placed there when we see them in the VCT but not in the PMT when recording.
  • Loading branch information
daniel-kristjansson committed Nov 18, 2011
1 parent 3341f2c commit f5a2dc9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mythtv/libs/libmythtv/avformatdecoder.cpp
Expand Up @@ -1476,10 +1476,16 @@ void AvFormatDecoder::ScanATSCCaptionStreams(int av_index)
if (!pmt.IsVideo(i, "dvb"))
return;

const desc_list_t desc_list = MPEGDescriptor::ParseOnlyInclude(
desc_list_t desc_list = MPEGDescriptor::ParseOnlyInclude(
pmt.StreamInfo(i), pmt.StreamInfoLength(i),
DescriptorID::caption_service);

const desc_list_t desc_list2 = MPEGDescriptor::ParseOnlyInclude(
pmt.ProgramInfo(), pmt.ProgramInfoLength(),
DescriptorID::caption_service);

desc_list.insert(desc_list.end(), desc_list2.begin(), desc_list2.end());

for (uint j = 0; j < desc_list.size(); j++)
{
const CaptionServiceDescriptor csd(desc_list[j]);
Expand Down

0 comments on commit f5a2dc9

Please sign in to comment.