diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-11-22 21:04:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-08 21:56:47 +0100 |
| commit | b33437685e43427459e7ea752f3cd3d621878573 (patch) | |
| tree | e4ad1f81f2d97b2cf150db206b9990ed00a54cb3 /src | |
| parent | 706f73390eb37f16b220177650ea7e70c2462150 (diff) | |
Add assert.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/film_viewer.cc | 1 |
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()) { |
