diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-09-14 01:36:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-09-27 13:41:46 +0200 |
| commit | 6cac49dc50dae6b173135df101d532f20031ca70 (patch) | |
| tree | fe5a4fb85f89795d9501426dd6d06bada3859b6d /src/wx | |
| parent | c46bfb445ba467b3b262cab4e0aa808d6b4cb6a8 (diff) | |
Setup Butler::_prepare_only_proxy on construction.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/film_viewer.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 749e4ceb7..98948b1f2 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -222,17 +222,14 @@ FilmViewer::recreate_butler () bind(&PlayerVideo::force, _1, AV_PIX_FMT_RGB24), VideoRange::FULL, false, - true + true, + dynamic_pointer_cast<GLVideoView>(_video_view) && _optimise_for_j2k ); if (!Config::instance()->sound() && !_audio.isStreamOpen()) { _butler->disable_audio (); } - if (dynamic_pointer_cast<GLVideoView>(_video_view) && _optimise_for_j2k) { - _butler->set_prepare_only_proxy (true); - } - _closed_captions_dialog->set_butler (_butler); resume (); |
