Skip to content

Commit a14b34b

Browse files
stuartmPaul Harrison
authored andcommitted
Fix PCR packets being stripped from transport stream following [0f0e678]
(cherry picked from commit d947e91) Refs #12422
1 parent 6b73976 commit a14b34b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,12 +601,13 @@ bool MPEGStreamData::CreatePMTSingleProgram(const ProgramMapTable &pmt)
601601
// Filter out streams not used for basic television
602602
if (_recording_type == "tv" && !is_audio && !is_video &&
603603
!MPEGDescriptor::Find(desc, DescriptorID::teletext) &&
604-
!MPEGDescriptor::Find(desc, DescriptorID::subtitling))
604+
!MPEGDescriptor::Find(desc, DescriptorID::subtitling) &&
605+
pid != pmt.PCRPID()) // We must not strip the PCR!
605606
{
606607
continue;
607608
}
608609

609-
if (!is_audio && !is_video)
610+
if (!is_audio && !is_video) //NOTE: Anything which isn't audio or video is data
610611
dataPIDs.push_back(pid);
611612

612613
pdesc.push_back(desc);

0 commit comments

Comments
 (0)