summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-16 01:04:07 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-16 01:04:07 +0100
commit1735af36a8fe197b1cc77b569b3933c74457d995 (patch)
tree75cef625d3afd2fdb58f1ae8c02c0b2235de6f16 /src/lib
parent8482da8426e1478b30dc273288900ddf7877be31 (diff)
Remove unused variable.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc2
-rw-r--r--src/lib/player_subtitles.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index db62cbcc8..7dcaf68b7 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -590,7 +590,7 @@ Player::get_subtitles (DCPTime time, DCPTime length, bool starting, bool burnt,
{
list<shared_ptr<Piece> > subs = overlaps (time, time + length, has_subtitle);
- PlayerSubtitles ps (time, length);
+ PlayerSubtitles ps (time);
for (list<shared_ptr<Piece> >::const_iterator j = subs.begin(); j != subs.end(); ++j) {
if (!(*j)->content->subtitle->use () || (!_always_burn_subtitles && (burnt != (*j)->content->subtitle->burn ()))) {
diff --git a/src/lib/player_subtitles.h b/src/lib/player_subtitles.h
index b43a1d0a9..9e50ea777 100644
--- a/src/lib/player_subtitles.h
+++ b/src/lib/player_subtitles.h
@@ -30,15 +30,13 @@ class Font;
class PlayerSubtitles
{
public:
- PlayerSubtitles (DCPTime f, DCPTime t)
+ PlayerSubtitles (DCPTime f)
: from (f)
- , to (t)
{}
void add_fonts (std::list<boost::shared_ptr<Font> > fonts_);
DCPTime from;
- DCPTime to;
std::list<boost::shared_ptr<Font> > fonts;
/** ImageSubtitles, with their rectangles transformed as specified by their content */