diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 96656ce09..6d46b2c21 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -101,7 +101,14 @@ FilmViewer::film_changed (Film::Property p) o.decode_audio = false; o.decode_subtitles = true; o.video_sync = false; - _decoders = decoder_factory (_film, o); + + try { + _decoders = decoder_factory (_film, o); + } catch (StringError& e) { + error_dialog (this, wxString::Format (_("Could not open content file (%s)"), e.what())); + return; + } + if (_decoders.video == 0) { break; } |
