summaryrefslogtreecommitdiff
path: root/src/tools/dvdomatic.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-19 23:50:17 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-19 23:50:17 +0000
commit2f56f38ce56b36f20d59593f56981e7ed330c484 (patch)
tree1889f6eff9545010815775671df54064bc796201 /src/tools/dvdomatic.cc
parent13337c62d8c0d052ba0377af9c00fe1d940be3cc (diff)
Re-work again so that there's just one encoder; various tweaks to still-image-with-audio.
Diffstat (limited to 'src/tools/dvdomatic.cc')
-rw-r--r--src/tools/dvdomatic.cc10
1 files changed, 7 insertions, 3 deletions
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 ();