Fix message for high bitrate frames during verify.
[dcpomatic.git] / src / wx / gl_video_view.cc
index 4fc620936d9eb837bc22cefe089d1fb1f678a384..06c9f268b5ef4abe37476e2394c82d7a43edd499 100644 (file)
@@ -79,6 +79,7 @@ check_gl_error (char const * last)
 GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent)
        : VideoView (viewer)
        , _context (nullptr)
+       , _rec2020(false)
        , _vsync_enabled (false)
        , _playing (false)
        , _one_shot (false)
@@ -620,9 +621,9 @@ GLVideoView::set_image (shared_ptr<const PlayerVideo> pv)
        auto const canvas_size = _canvas_size.load();
        int const canvas_width = canvas_size.GetWidth();
        int const canvas_height = canvas_size.GetHeight();
-       auto const inter_position = player_video().first->inter_position();
-       auto const inter_size = player_video().first->inter_size();
-       auto const out_size = player_video().first->out_size();
+       auto const inter_position = pv->inter_position();
+       auto const inter_size = pv->inter_size();
+       auto const out_size = pv->out_size();
        auto const crop_guess = _viewer->crop_guess();
 
        auto x_offset = std::max(0, (canvas_width - out_size.width) / 2);