diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-16 00:51:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-16 00:51:15 +0100 |
| commit | 1dd9fb73e28f079fb0d4ee46ab3e18008e42aca2 (patch) | |
| tree | d664e31fc4331e0c0311e7657ff1a4323eb03a88 /src/wx/audio_dialog.cc | |
| parent | 5b7c8b06f7d9ea910020b4620c234cf0dce95a66 (diff) | |
Potential fix for crash on loading a new film after starting an audio analysis.
Diffstat (limited to 'src/wx/audio_dialog.cc')
| -rw-r--r-- | src/wx/audio_dialog.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index b2fb0efe5..c753de535 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -218,7 +218,10 @@ void AudioDialog::analysis_finished () { shared_ptr<const Film> film = _film.lock (); - DCPOMATIC_ASSERT (film); + if (!film) { + /* This should not happen, but if it does we should just give up quietly */ + return; + } if (!boost::filesystem::exists (film->audio_analysis_path (_playlist))) { /* We analysed and still nothing showed up, so maybe it was cancelled or it failed. |
