summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-02 20:53:29 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-02 20:53:29 +0100
commitcec71ef08475af291b968873757979c5e977facb (patch)
tree052ff4442bc43063ec4e0ec818ff3ed0fa60ac0e /src
parent7c521e59e0e5c9160babf6b12d0c13cc3785dce1 (diff)
Add an assert.
Diffstat (limited to 'src')
-rw-r--r--src/wx/subtitle_panel.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/subtitle_panel.cc b/src/wx/subtitle_panel.cc
index 852d754d5..840d3dad5 100644
--- a/src/wx/subtitle_panel.cc
+++ b/src/wx/subtitle_panel.cc
@@ -245,6 +245,7 @@ SubtitlePanel::setup_sensitivity ()
shared_ptr<const DCPSubtitleContent> dsc = boost::dynamic_pointer_cast<const DCPSubtitleContent> (i);
if (fc) {
if (fc->subtitle) {
+ DCPOMATIC_ASSERT (fc->subtitle_stream());
/* This content has some subtitles; check the selected stream to decide what type */
if (fc->subtitle_stream()->has_text()) {
++text_subs;