summaryrefslogtreecommitdiff
path: root/src/tools/servomatictest.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-08 21:03:28 +0000
committerCarl Hetherington <cth@carlh.net>2013-03-08 21:03:28 +0000
commitbb95f333f15ace7c032bb5b5761b512b6fe2e84e (patch)
treed9486a34d1980804ceb9b2203e46de1bdf3bf9d8 /src/tools/servomatictest.cc
parent8af3fc82eb7d5955b09d94e1cc142f6a3adcf370 (diff)
Numerous fixes to A/B mode so that at least it doesn't crash (#72).
Diffstat (limited to 'src/tools/servomatictest.cc')
-rw-r--r--src/tools/servomatictest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/servomatictest.cc b/src/tools/servomatictest.cc
index 91ad02120..f5756c693 100644
--- a/src/tools/servomatictest.cc
+++ b/src/tools/servomatictest.cc
@@ -43,7 +43,7 @@ using std::pair;
using boost::shared_ptr;
static ServerDescription* server;
-static FileLog log_ ("servomatictest.log");
+static shared_ptr<FileLog> log_ (new FileLog ("servomatictest.log"));
static int frame = 0;
void
@@ -53,14 +53,14 @@ process_video (shared_ptr<Image> image, bool, shared_ptr<Subtitle> sub)
new DCPVideoFrame (
image, sub,
libdcp::Size (1024, 1024), 0, 0, 0,
- Scaler::from_id ("bicubic"), frame, 24, "", 0, 250000000, &log_)
+ Scaler::from_id ("bicubic"), frame, 24, "", 0, 250000000, log_)
);
shared_ptr<DCPVideoFrame> remote (
new DCPVideoFrame (
image, sub,
libdcp::Size (1024, 1024), 0, 0, 0,
- Scaler::from_id ("bicubic"), frame, 24, "", 0, 250000000, &log_)
+ Scaler::from_id ("bicubic"), frame, 24, "", 0, 250000000, log_)
);
cout << "Frame " << frame << ": ";