-void
-FilmViewer::setup_player ()
-{
- _player = _film->player ();
- _player->disable_audio ();
- _player->disable_video_sync ();
-
- /* Don't disable subtitles here as we may need them, and it's nice to be able to turn them
- on and off without needing obtain a new Player.
- */
-
- _player->Video.connect (bind (&FilmViewer::process_video, this, _1, _2, _3));
-}
-
-void
-FilmViewer::film_content_changed (int p)
-{
- if (p == VideoContentProperty::VIDEO_LENGTH || p == VideoContentProperty::VIDEO_SIZE) {
- setup_player ();
- calculate_sizes ();
- get_frame ();
- _panel->Refresh ();
- _v_sizer->Layout ();
- }
-}
-