diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-24 00:11:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-24 00:11:18 +0100 |
| commit | 045d39f2f0a090cf863a5474fc39546c7d5fb17d (patch) | |
| tree | 0401c8ade3ccfcb95e30cd6bfbadd094bb3a9538 /src | |
| parent | 2bf8abfdb8c0f4df0d4ce1078d629cc8bcb10fae (diff) | |
Make film() more defensive.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_timeline.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wx/content_timeline.cc b/src/wx/content_timeline.cc index f29171241..a532ccb1a 100644 --- a/src/wx/content_timeline.cc +++ b/src/wx/content_timeline.cc @@ -883,7 +883,9 @@ ContentTimeline::force_redraw(dcpomatic::Rect<int> const & r) shared_ptr<const Film> ContentTimeline::film() const { - return _film.lock(); + auto film = _film.lock(); + DCPOMATIC_ASSERT(film); + return film; } |
