From: Chris Tallon Date: Thu, 24 Apr 2025 16:12:43 +0000 (+0000) Subject: Fix subtitles flat out not working X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=4e9a42565b646e1151474b00281d695f15d9c9ca;p=vompclient.git Fix subtitles flat out not working --- diff --git a/src/dvbsubtitles.cc b/src/dvbsubtitles.cc index ba4adf2..dc06d94 100644 --- a/src/dvbsubtitles.cc +++ b/src/dvbsubtitles.cc @@ -527,7 +527,14 @@ void DVBSubtitles::put(const PESPacket& packet) input_mutex.lock(); if (running) { - if (packet.getPTS() != PESPacket::PTS_INVALID) + if ((packet.getPTS() == 0x1FFFFFFFF) && (packet.getSize() == 14)) + { + // Filter this packet. What is it? Subs seem to work fine without it and it's too short to be useful + // The rewritten timing algorithm below doesn't handle this packet like it did before + // and it jams up the work list + } + + else if (packet.getPTS() != PESPacket::PTS_INVALID) { worklist.push_back(packet); signalRecalcWLTO = true;