summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-11 01:15:09 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-11 01:15:09 +0200
commitc83c90a758645d98c2ad46bda101c6b72a8c4f45 (patch)
tree48fafac47e3dba5bb2ab5772b13dbc5f83347505
parent904dfe04e4014c0a30c423cc052eb888bbaf3346 (diff)
Cleanup: flip logic to match ::time().
-rw-r--r--src/wx/film_viewer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 4b864d2a9..3593d0364 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -693,11 +693,11 @@ FilmViewer::uncorrected_time () const
{
auto& audio = AudioBackend::instance()->rtaudio();
- if (audio.isStreamRunning()) {
- return DCPTime::from_seconds(audio.getStreamTime());
+ if (!audio.isStreamRunning()) {
+ return _video_view->position();
}
- return _video_view->position();
+ return DCPTime::from_seconds(audio.getStreamTime());
}