summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-22 21:04:05 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commitb33437685e43427459e7ea752f3cd3d621878573 (patch)
treee4ad1f81f2d97b2cf150db206b9990ed00a54cb3 /src
parent706f73390eb37f16b220177650ea7e70c2462150 (diff)
Add assert.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc1
1 files changed, 1 insertions, 0 deletions
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()) {