Add assert.
authorCarl Hetherington <cth@carlh.net>
Fri, 22 Nov 2019 20:04:05 +0000 (21:04 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 8 Jan 2020 20:56:47 +0000 (21:56 +0100)
src/wx/film_viewer.cc

index f921f83bd7ac4285f5cd358471ca5924446a849c..17573b4388053fe1ea09539510d8632a7770cffa 100644 (file)
@@ -286,6 +286,7 @@ FilmViewer::suspend ()
 void
 FilmViewer::resume ()
 {
+       DCPOMATIC_ASSERT (_suspended > 0);
        --_suspended;
        if (_playing && !_suspended) {
                if (_audio.isStreamOpen()) {