projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small re-use cleanup.
[dcpomatic.git]
/
src
/
wx
/
film_viewer.cc
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index 31093cb0a8581de14087867cbc22608c64d1dc40..c1d04be03f05e5d9f4a88d6de7f85a13409e773f 100644
(file)
--- a/
src/wx/film_viewer.cc
+++ b/
src/wx/film_viewer.cc
@@
-567,12
+567,7
@@
FilmViewer::audio_time () const
DCPTime
FilmViewer::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
}
int