From 2f56f38ce56b36f20d59593f56981e7ed330c484 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 19 Dec 2012 23:50:17 +0000 Subject: Re-work again so that there's just one encoder; various tweaks to still-image-with-audio. --- src/tools/dvdomatic.cc | 10 +++++++--- src/tools/servomatictest.cc | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/tools') diff --git a/src/tools/dvdomatic.cc b/src/tools/dvdomatic.cc index d5d5bfc2f..59f3ebc3e 100644 --- a/src/tools/dvdomatic.cc +++ b/src/tools/dvdomatic.cc @@ -288,9 +288,13 @@ public: if (r == wxID_OK) { maybe_save_then_delete_film (); - film.reset (new Film (wx_to_std (c->GetPath ()))); - film->log()->set_level (log_level); - set_film (); + try { + film.reset (new Film (wx_to_std (c->GetPath ()))); + film->log()->set_level (log_level); + set_film (); + } catch (std::exception& e) { + error_dialog (this, String::compose ("Could not open film at %1 (%2)", wx_to_std (c->GetPath()), e.what())); + } } c->Destroy (); diff --git a/src/tools/servomatictest.cc b/src/tools/servomatictest.cc index 41ec8075d..88c2a833e 100644 --- a/src/tools/servomatictest.cc +++ b/src/tools/servomatictest.cc @@ -42,7 +42,7 @@ static Server* server; static Log log_ ("servomatictest.log"); void -process_video (shared_ptr image, int frame) +process_video (shared_ptr image, bool, int frame) { shared_ptr local (new DCPVideoFrame (image, Size (1024, 1024), 0, Scaler::from_id ("bicubic"), frame, 24, "", 0, 250000000, &log_)); shared_ptr remote (new DCPVideoFrame (image, Size (1024, 1024), 0, Scaler::from_id ("bicubic"), frame, 24, "", 0, 250000000, &log_)); -- cgit v1.2.3