diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-23 23:09:48 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-01 16:39:41 +0100 |
| commit | 908646bb5753833a652424babb3f1f3f3018d0f4 (patch) | |
| tree | d0c7b0a85bde1cccbd648ce6b729c915ebf965b3 | |
| parent | d78278fd980976885f49dfe8454dbf58e8377df9 (diff) | |
Couple of time call fixes.
| -rw-r--r-- | src/lib/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 0af9f286f..62dc48eeb 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -942,7 +942,7 @@ Player::bitmap_text_start (weak_ptr<Piece> wp, weak_ptr<const TextContent> wc, C dcp::Size scaled_size (width, height); ps.bitmap.push_back (BitmapText(image->scale(scaled_size, dcp::YUV_TO_RGB_REC601, image->pixel_format(), true, _fast), subtitle.sub.rectangle)); - DCPTime from (content_time_to_dcp (piece, subtitle.from())); + DCPTime from (piece->content_time_to_dcp(subtitle.from())); _active_texts[text->type()].add_from (wc, ps, from); } @@ -957,7 +957,7 @@ Player::plain_text_start (weak_ptr<Piece> wp, weak_ptr<const TextContent> wc, Co } PlayerText ps; - DCPTime const from (content_time_to_dcp (piece, subtitle.from())); + DCPTime const from (piece->content_time_to_dcp(subtitle.from())); if (from > piece->end(_film)) { return; |
