diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-06-16 22:57:06 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-06-16 22:57:06 +0200 |
| commit | 09171f01092232d0c80b28313ee0c405b812d5ab (patch) | |
| tree | a1405210bbf1c7dfc67ca9939d5aa9ab315c2146 | |
| parent | 11778a3e9acb687a3cfe3af8358824ad7086218c (diff) | |
Slightly improve a crash when content goes away.
| -rw-r--r-- | src/wx/simple_video_view.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc index 09c172171..85d6b1036 100644 --- a/src/wx/simple_video_view.cc +++ b/src/wx/simple_video_view.cc @@ -170,7 +170,11 @@ SimpleVideoView::timer () _timer.Start (max(1, time_until_next_frame().get_value_or(0)), wxTIMER_ONE_SHOT); if (_viewer->butler()) { - _viewer->butler()->rethrow (); + try { + _viewer->butler()->rethrow(); + } catch (dcp::FileError& e) { + error_dialog(_panel, _("Could not play content"), std_to_wx(e.what())); + } } } |
