summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-21 10:25:46 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-21 10:25:46 +0100
commit81915d4db00c333da2debd2f8e9a0c02f7a316a3 (patch)
tree68062af342d2ef6c7a3b5aebbe7cb761bbab5372 /src/wx/film_viewer.cc
parent4c905330c2052cd77be09d9deb301f1fcf4b81f2 (diff)
Diffstat (limited to 'src/wx/film_viewer.cc')
-rw-r--r--src/wx/film_viewer.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index a7a2ab984..a40c316f6 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -405,6 +405,7 @@ FilmViewer::start ()
start_audio_stream_if_open ();
_playing = true;
+ _butler->enable_lookahead();
/* Calling start() below may directly result in Stopped being emitted, and if that
* happens we want it to come after the Started signal, so do that first.
*/
@@ -423,6 +424,7 @@ FilmViewer::stop ()
}
_playing = false;
+ _butler->disable_lookahead();
_video_view->stop ();
Stopped ();
@@ -451,6 +453,7 @@ void
FilmViewer::player_change (vector<int> properties)
{
calculate_sizes ();
+ PeriodTimer timer("FV player_change");
bool try_quick_refresh = false;
bool update_ccap_tracks = false;
@@ -484,9 +487,11 @@ FilmViewer::player_change (vector<int> properties)
}
+
void
FilmViewer::film_change(ChangeType type, FilmProperty p)
{
+ PeriodTimer timer("FV film_change");
if (type != ChangeType::DONE) {
return;
}
@@ -506,6 +511,7 @@ FilmViewer::film_change(ChangeType type, FilmProperty p)
void
FilmViewer::film_length_change ()
{
+ PeriodTimer timer("FV film_length_change");
_video_view->set_length (_film->length());
}
@@ -514,6 +520,7 @@ FilmViewer::film_length_change ()
void
FilmViewer::slow_refresh ()
{
+ PeriodTimer timer("FV slow refresh\n");
seek (_video_view->position(), true);
}