From b33437685e43427459e7ea752f3cd3d621878573 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 22 Nov 2019 21:04:05 +0100 Subject: [PATCH] Add assert. --- src/wx/film_viewer.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index f921f83bd..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()) { -- 2.30.2