Various Doxygen fixes.
[dcpomatic.git] / src / lib / dcp_decoder.cc
index 665b5e560ccdd949c5a67b4fc4e67509800fb5d6..0b99e8dd08f36f42d60da9e6559241db00b32411 100644 (file)
@@ -79,11 +79,11 @@ DCPDecoder::DCPDecoder (shared_ptr<const DCPContent> c, shared_ptr<Log> log)
        get_readers ();
 }
 
-void
+bool
 DCPDecoder::pass ()
 {
        if (_reel == _reels.end () || !_dcp_content->can_be_played ()) {
-               return;
+               return true;
        }
 
        double const vfr = _dcp_content->active_video_frame_rate ();
@@ -155,9 +155,6 @@ DCPDecoder::pass ()
                }
        }
 
-       video->set_position (_next);
-       audio->set_position (_dcp_content->audio->stream(), _next);
-       subtitle->set_position (_next);
        _next += ContentTime::from_frames (1, vfr);
 
        if ((*_reel)->main_picture ()) {
@@ -166,6 +163,8 @@ DCPDecoder::pass ()
                        _next = ContentTime ();
                }
        }
+
+       return false;
 }
 
 void
@@ -211,8 +210,10 @@ DCPDecoder::get_readers ()
 }
 
 void
-DCPDecoder::seek (ContentTime t, bool)
+DCPDecoder::seek (ContentTime t, bool accurate)
 {
+       Decoder::seek (t, accurate);
+
        _reel = _reels.begin ();
        _offset = 0;
        get_readers ();