diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-05 14:29:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-05 14:29:47 +0100 |
| commit | 9f16745534f92ad7293bf43f6f0197348c0dc49b (patch) | |
| tree | 0c2915720eee0699bc52e7d45802ae6c4c49b1c6 | |
| parent | 7ec4cb260c6f1bade4bbe515f91ebe8b3572472c (diff) | |
Speculative fix for crash on startup with no audio devices (#1265).v2.13.11
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | src/wx/film_viewer.cc | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ 2018-04-05 Carl Hetherington <cth@carlh.net> + * Fix crash on startup if there are no audio devices (#1265). + * Fix non-working arrow keys / space in text fields (#1263). * Fix assertion failures with 3D content in some cases. diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 5cd09048c..ccb2b790d 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -818,7 +818,7 @@ FilmViewer::config_changed (Config::Property p) _audio.closeStream (); } - if (Config::instance()->sound()) { + if (Config::instance()->sound() && _audio.getDeviceCount() > 0) { unsigned int st = 0; if (Config::instance()->sound_output()) { while (st < _audio.getDeviceCount()) { |
