summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-04-19 09:24:59 +0100
committerCarl Hetherington <cth@carlh.net>2017-04-19 23:04:32 +0100
commit0a2fe723109c6a8fbb61ea5721b5a475e4b480d0 (patch)
tree513782d152de6976646e900b55c2665c4cd1e80e /src/wx
parent0dc26c2ec9aba5fd5f4ca281711fb8ac5a76612b (diff)
Various fixes to seeking with audio.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/film_viewer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 942a0fedc..40efdce61 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -666,9 +666,15 @@ FilmViewer::seek (DCPTime t, bool accurate)
return;
}
+ bool const was_running = stop ();
+
_butler->seek (t, accurate);
_last_seek_accurate = accurate;
get ();
+
+ if (was_running) {
+ start ();
+ }
}
void