Stub player.
[dcpomatic.git] / src / lib / playlist.cc
index 3609f9eb3df59d46caf04149f46de1a5faf4aa43..12832cfd78aa3c5c059e29723c73d29d4a84d3ee 100644 (file)
@@ -563,11 +563,7 @@ Playlist::audio_content_at (DCPTime time) const
                if (!i->audio) {
                        continue;
                }
-               DCPTime end = i->end ();
-               if (i->audio->delay() < 0) {
-                       end += DCPTime::from_seconds (i->audio->delay() / 1000.0);
-               }
-               if (i->position() <= time && time < end) {
+               if (i->position() <= time && time < i->end()) {
                        return true;
                }
        }