Add an assert.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Jun 2016 19:53:29 +0000 (20:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Jun 2016 19:53:29 +0000 (20:53 +0100)
src/wx/subtitle_panel.cc

index 852d754d538cadef1a6dad0784e68c4dca775fd9..840d3dad57c058ae8e8d993481b2b395d69c8235 100644 (file)
@@ -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;