summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-07-26 12:15:12 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-27 08:26:55 +0200
commite9f4e040fcad377debfcf6c849bb8f8778b08591 (patch)
treed96fd9fcc24cd434a8932ea339c998de25e01264 /src/wx/film_viewer.cc
parentb607a42e43df747007b6e0c3663ac39eaa0b4742 (diff)
Fix build.rtaudio6
Diffstat (limited to 'src/wx/film_viewer.cc')
-rw-r--r--src/wx/film_viewer.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 13bc5b579..9edd4578e 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -603,7 +603,8 @@ FilmViewer::config_changed (Config::Property p)
return;
}
- auto& audio = AudioBackend::instance()->rtaudio();
+ auto backend = AudioBackend::instance();
+ auto& audio = backend->rtaudio();
if (audio.isStreamOpen()) {
audio.closeStream();
@@ -633,7 +634,7 @@ FilmViewer::config_changed (Config::Property p)
_audio_channels = 0;
error_dialog(
_video_view->get(),
- _("Could not set up audio output. There will be no audio during the preview."), std_to_wx(audio.last_rtaudio_error())
+ _("Could not set up audio output. There will be no audio during the preview."), std_to_wx(backend->last_rtaudio_error())
);
}
#else