Possibly improve shuffler behaviour (use one for all content if any 3D is present).
[dcpomatic.git] / src / lib / text_decoder.cc
index 88f7cd4a9bab0f2d10f9efc1da79c036305a454b..d5afb555d6683e84daa13c4fe36cfd53151e3b14 100644 (file)
@@ -60,10 +60,10 @@ TextDecoder::TextDecoder (
  *  of the video frame)
  */
 void
-TextDecoder::emit_bitmap_start (ContentTime from, shared_ptr<const Image> image, dcpomatic::Rect<double> rect)
+TextDecoder::emit_bitmap_start (ContentBitmapText const& bitmap)
 {
-       BitmapStart (ContentBitmapText (from, image, rect));
-       _position = from;
+       BitmapStart (bitmap);
+       _position = bitmap.from();
 }
 
 
@@ -247,7 +247,8 @@ TextDecoder::emit_plain_start (ContentTime from, sub::Subtitle const & subtitle)
                                           use libsub for DCP subs) we can cheat by just putting 0 in here.
                                        */
                                        dcp::Time (),
-                                       dcp::Time ()
+                                       dcp::Time (),
+                                       0
                                        )
                                );
                }
@@ -287,7 +288,7 @@ TextDecoder::emit_plain (ContentTimePeriod period, sub::Subtitle const & s)
 void
 TextDecoder::emit_bitmap (ContentTimePeriod period, shared_ptr<const Image> image, dcpomatic::Rect<double> rect)
 {
-       emit_bitmap_start (period.from, image, rect);
+       emit_bitmap_start ({ period.from, image, rect });
        emit_stop (period.to);
 }