Add another .srt test; remove checking of .srt subtitle indices as the strict sequenc...
[dcpomatic.git] / test / ffmpeg_decoder_seek_test.cc
index dd80765f419e6e4e3bc9995fd602271f9e934758..968c3bdf910eb0265441739ae4b07a7783cfb172 100644 (file)
 
 using std::cerr;
 using std::vector;
+using std::list;
 using boost::shared_ptr;
 using boost::optional;
 
 static void
 check (FFmpegDecoder& decoder, int frame)
 {
-       optional<ContentVideo> v;
+       list<ContentVideo> v;
        v = decoder.get_video (frame, true);
-       BOOST_CHECK (v);
-       BOOST_CHECK_EQUAL (v->frame, frame);
+       BOOST_CHECK (v.size() == 1);
+       BOOST_CHECK_EQUAL (v.front().frame, frame);
 }
 
 static void