X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ffilm_viewer.cc;h=17573b4388053fe1ea09539510d8632a7770cffa;hp=c7b32ff26f54cc0ed913199a7ff74c43ee1004a2;hb=b33437685e43427459e7ea752f3cd3d621878573;hpb=166f44ff1b500f684417d660bb349d35383996ee diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index c7b32ff26..17573b438 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -286,6 +286,7 @@ FilmViewer::suspend () void FilmViewer::resume () { + DCPOMATIC_ASSERT (_suspended > 0); --_suspended; if (_playing && !_suspended) { if (_audio.isStreamOpen()) { @@ -406,6 +407,9 @@ FilmViewer::slow_refresh () bool FilmViewer::quick_refresh () { + if (!_video_view || !_film) { + return true; + } return _video_view->refresh_metadata (_film, _player->video_container_size(), _film->frame_size()); }