summaryrefslogtreecommitdiff
path: root/src/lib/content_video.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-20 23:34:59 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-20 23:37:24 +0000
commita0eff2446835a2a29d751a4810fe182c486a2eb6 (patch)
tree3a6b9e6c6724d2356c97c2cf14810ef79c85af53 /src/lib/content_video.h
parentd920b12b4d05fa1b0e95e1178ee21c671e0ae431 (diff)
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...
Diffstat (limited to 'src/lib/content_video.h')
-rw-r--r--src/lib/content_video.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/content_video.h b/src/lib/content_video.h
index f59e99cfc..8b3d984df 100644
--- a/src/lib/content_video.h
+++ b/src/lib/content_video.h
@@ -21,6 +21,8 @@
#ifndef DCPOMATIC_CONTENT_VIDEO_H
#define DCPOMATIC_CONTENT_VIDEO_H
+#include "types.h"
+
class ImageProxy;
/** @class ContentVideo