Fix deadlock.
[dcpomatic.git] / src / lib / dcp_decoder.cc
index 74affe857e5f058133224a0e87be24c73dd5848d..3bfbd7720c9e04cf99b951db455e306bd2be3cb9 100644 (file)
@@ -49,13 +49,13 @@ DCPDecoder::DCPDecoder (shared_ptr<const DCPContent> c)
        if (c->kdm ()) {
                dcp.add (dcp::DecryptedKDM (c->kdm().get (), Config::instance()->decryption_private_key ()));
        }
-       assert (dcp.cpls().size() == 1);
+       DCPOMATIC_ASSERT (dcp.cpls().size() == 1);
        _reels = dcp.cpls().front()->reels ();
        _reel = _reels.begin ();
 }
 
 bool
-DCPDecoder::pass ()
+DCPDecoder::pass (PassReason)
 {
        if (_reel == _reels.end () || !_dcp_content->can_be_played ()) {
                return true;
@@ -133,7 +133,14 @@ DCPDecoder::seek (ContentTime t, bool accurate)
 
 
 list<ContentTimePeriod>
-DCPDecoder::subtitles_during (ContentTimePeriod, bool starting) const
+DCPDecoder::image_subtitles_during (ContentTimePeriod, bool) const
 {
        return list<ContentTimePeriod> ();
 }
+
+list<ContentTimePeriod>
+DCPDecoder::text_subtitles_during (ContentTimePeriod, bool) const
+{
+       /* XXX */
+       return list<ContentTimePeriod> ();
+}