summaryrefslogtreecommitdiff
path: root/src/lib/butler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-30 23:49:04 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-01 00:20:51 +0100
commit5b6b01ea778064a0b0125ea8ebd9272a534cccd2 (patch)
treeb9fcb7a7336240e700686c256b6aa29d8b7f7fa7 /src/lib/butler.cc
parentd1a57244622f5f4160d0f58af7fe71a829175345 (diff)
Give Butler a weak_ptr<Film>
Diffstat (limited to 'src/lib/butler.cc')
-rw-r--r--src/lib/butler.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/butler.cc b/src/lib/butler.cc
index d27778b70..4ab0092c4 100644
--- a/src/lib/butler.cc
+++ b/src/lib/butler.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2016-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2016-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -58,6 +58,7 @@ using namespace boost::placeholders;
* @param fast Same as above for the `fast' flag.
*/
Butler::Butler (
+ weak_ptr<const Film> film,
shared_ptr<Player> player,
AudioMapping audio_mapping,
int audio_channels,
@@ -66,7 +67,8 @@ Butler::Butler (
bool aligned,
bool fast
)
- : _player (player)
+ : _film (film)
+ , _player (player)
, _prepare_work (new boost::asio::io_service::work (_prepare_service))
, _pending_seek_accurate (false)
, _suspended (0)