WIP: more
[dcpomatic.git] / src / lib / player.cc
index 16bb499451501b17da80dfe2cec6081ec6f64614..7e915296ed1dfc06dc16b0535557671d85cebe53 100644 (file)
@@ -907,6 +907,10 @@ Player::audio (weak_ptr<Piece> wp, PieceAudio audio)
        int const rfr = piece->resampled_audio_frame_rate ();
        auto end = audio.time + DCPTime::from_frames(audio.audio->frames(), rfr);
 
+       /* XXX: is this still necessary? don't the checks in Piece take care of this now?
+        * Maybe replace with some assertions & run tests.
+        */
+
        /* Remove anything that comes before the start or after the end of the content */
        if (audio.time < piece->position()) {
                auto cut = discard_audio (audio.audio, audio.time, piece->position());