summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/film_viewer.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 31093cb0a..c1d04be03 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -567,12 +567,7 @@ FilmViewer::audio_time () const
DCPTime
FilmViewer::time () const
{
- if (_audio.isStreamRunning ()) {
- return DCPTime::from_seconds (const_cast<RtAudio*>(&_audio)->getStreamTime ()) -
- DCPTime::from_frames (average_latency(), _film->audio_frame_rate());
- }
-
- return _video_view->position();
+ return audio_time().get_value_or(_video_view->position());
}
int