]> git.vomp.tv Git - vompclient.git/commitdiff
Fix subtitles flat out not working
authorChris Tallon <chris@vomp.tv>
Thu, 24 Apr 2025 16:12:43 +0000 (16:12 +0000)
committerChris Tallon <chris@vomp.tv>
Thu, 24 Apr 2025 16:12:43 +0000 (16:12 +0000)
src/dvbsubtitles.cc

index ba4adf20d1a91759bbb69b15389f88a85d1456fc..dc06d943b5d71fbbd7c5f6dcebafee37ecd05cbc 100644 (file)
@@ -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;