- shared_ptr<AudioBuffers> audio = _player->get_audio (t, frame, true);
- if (audio) {
- _writer->write (audio);
+ BOOST_FOREACH (shared_ptr<PlayerVideo> i, _player->get_video (t, true)) {
+ if (!_film->three_d()) {
+ /* 2D DCP */
+ if (i->eyes() == EYES_RIGHT) {
+ /* Discard right-eye images */
+ continue;
+ } else if (i->eyes() == EYES_LEFT) {
+ /* Use left-eye images for both eyes */
+ i->set_eyes (EYES_BOTH);
+ }
+ }
+
+ _encoder->encode (i);