diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index fb02f0a0f..e7dcf5642 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -622,10 +622,18 @@ FilmViewer::config_changed (Config::Property p) ++st; } if (st == _audio.getDeviceCount()) { - st = _audio.getDefaultOutputDevice(); + try { + st = _audio.getDefaultOutputDevice(); + } catch (RtAudioError&) { + /* Something went wrong with that device so we don't want to use it anyway */ + } } } else { - st = _audio.getDefaultOutputDevice(); + try { + st = _audio.getDefaultOutputDevice(); + } catch (RtAudioError&) { + /* Something went wrong with that device so we don't want to use it anyway */ + } } try { |
