From 9f828b327e680c322a70883910233337a37e481e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 18 Apr 2026 13:39:33 +0200 Subject: Fix late subtitles when they are muxed late with respect to the video. In one example we have the sequence video 3088,377 sub 3087,334 sub 3088,710 video 3088,419 so the 3087,334 sub is very late. Here we insert a queue to bring subtitle packets a little forward for processing. There is already a similar thing in the player (_delay) but adding a longer delay there seems wasteful because a) the video is by that point already decompressed and b) this problem only applies to FFmpeg-decoded files (and then, I think only if we are previewing or burning in subtitles). --- src/lib/wscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/wscript') diff --git a/src/lib/wscript b/src/lib/wscript index 8e4b4d783..44b77729e 100644 --- a/src/lib/wscript +++ b/src/lib/wscript @@ -170,6 +170,8 @@ sources = """ mpeg2_encoder.cc named_channel.cc overlaps.cc + packet_queue.cc + passthrough_packet_queue.cc pixel_quanta.cc player.cc player_video.cc @@ -208,6 +210,7 @@ sources = """ string_text_file_decoder.cc subtitle_analysis.cc subtitle_film_encoder.cc + subtitle_sync_packet_queue.cc territory_type.cc text_ring_buffers.cc text_type.cc -- cgit v1.2.3