Fix incorrect burnt-in subtitle colours when burning into a DCP source (#2261).
[dcpomatic.git] / src / lib / hints.cc
index 0f1cfece8e2040e8a8a8257a13126b3271e57520..4a5c984380a95af51c5e3fae1eeb4b2a548d06fa 100644 (file)
 #include "dcp_content_type.h"
 #include "film.h"
 #include "font.h"
-#include "font_data.h"
 #include "hints.h"
+#include "maths_util.h"
 #include "player.h"
 #include "ratio.h"
 #include "text_content.h"
 #include "types.h"
-#include "util.h"
 #include "video_content.h"
 #include "writer.h"
 #include <dcp/cpl.h>
@@ -419,6 +418,8 @@ try
        struct timeval last_pulse;
        gettimeofday (&last_pulse, 0);
 
+       _writer->write (player->get_subtitle_fonts());
+
        while (!player->pass()) {
 
                struct timeval now;