From a0eff2446835a2a29d751a4810fe182c486a2eb6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 Feb 2018 23:34:59 +0000 Subject: Add a 2-frame `delay' on content arriving at the player to give subtitle content the chance to catch up. Fixes problems observed when overlaying a DCP subtitle onto an existing DCP and then seeking into the first subtitle. After the seek the decoder positions were: DCP: 0. subtitle: first subtitle time. This causes the DCP decoder to be pass()ed first and so the subtitle for the video frame has not arrived yet. I hope this does not cause unpredicted side effects... --- src/lib/player.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib/player.h') diff --git a/src/lib/player.h b/src/lib/player.h index 0b8540c15..58ed4e369 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -33,6 +33,7 @@ #include "audio_stream.h" #include "audio_merger.h" #include "empty.h" +#include "delay.h" #include #include #include @@ -159,6 +160,7 @@ private: AudioMerger _audio_merger; Shuffler* _shuffler; + Delay* _delay; class StreamState { -- cgit v1.2.3