+ BOOST_FOREACH (shared_ptr<TextDecoder> i, caption) {
+ i->seek ();
+ }
+}
+
+shared_ptr<TextDecoder>
+Decoder::only_caption () const
+{
+ DCPOMATIC_ASSERT (caption.size() < 2);
+ if (caption.empty ()) {
+ return shared_ptr<TextDecoder> ();
+ }
+ return caption.front ();