+
+shared_ptr<TextDecoder>
+Decoder::only_text () const
+{
+ DCPOMATIC_ASSERT (text.size() < 2);
+ if (text.empty ()) {
+ return shared_ptr<TextDecoder> ();
+ }
+ return text.front ();
+}
+
+shared_ptr<const Film>
+Decoder::film () const
+{
+ shared_ptr<const Film> f = _film.lock ();
+ DCPOMATIC_ASSERT (f);
+ return f;
+}