summaryrefslogtreecommitdiff
path: root/src/lib/text_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-28 09:47:22 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-28 23:54:54 +0200
commitddf437f0591919e80cb84ebcc0930de6bc89aa0c (patch)
treebbde428efdf3c85e780770f89a020ae735b7e704 /src/lib/text_decoder.cc
parent6536af518c2791ee80fc3190e7f5732e93f87351 (diff)
Make emit_bitmap_start take a ContentBitmapText.
Diffstat (limited to 'src/lib/text_decoder.cc')
-rw-r--r--src/lib/text_decoder.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/text_decoder.cc b/src/lib/text_decoder.cc
index 512b6fc7b..b64073a5d 100644
--- a/src/lib/text_decoder.cc
+++ b/src/lib/text_decoder.cc
@@ -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();
}
@@ -288,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);
}