Fix warning and add comment.
authorCarl Hetherington <cth@carlh.net>
Tue, 23 Dec 2014 00:07:21 +0000 (00:07 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 23 Dec 2014 00:07:21 +0000 (00:07 +0000)
src/lib/dcp_decoder.cc
src/lib/subtitle_decoder.h

index f6d632f92a4130088d27dcea78cd094452f21ccc..51d16b43c6d767f03c2b2b85237fc06a657c8ea3 100644 (file)
@@ -133,7 +133,8 @@ DCPDecoder::seek (ContentTime t, bool accurate)
 
 
 list<ContentTimePeriod>
-DCPDecoder::subtitles_during (ContentTimePeriod, bool starting) const
+DCPDecoder::subtitles_during (ContentTimePeriod, bool) const
 {
+       /* XXX */
        return list<ContentTimePeriod> ();
 }
index 3d4f90ad9586fa3f438036c82c00607f414d6d9a..d7faaa0145900658edb2441597a47b0d5e3af968 100644 (file)
@@ -51,7 +51,10 @@ private:
        template <class T>
        std::list<T> get (std::list<T> const & subs, ContentTimePeriod period, bool starting);
 
-       virtual std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod, bool starting) const = 0;
+       /** @param starting true if we want only subtitles that start during the period, otherwise
+        *  we want subtitles that overlap the period.
+        */
+       virtual std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod period, bool starting) const = 0;
        
        boost::shared_ptr<const SubtitleContent> _subtitle_content;
 };