From 8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 31 Jan 2021 03:14:24 +0100 Subject: More enum class additions. --- src/lib/dcp_encoder.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/dcp_encoder.cc') diff --git a/src/lib/dcp_encoder.cc b/src/lib/dcp_encoder.cc index 4b4785cc6..c5bcf31f2 100644 --- a/src/lib/dcp_encoder.cc +++ b/src/lib/dcp_encoder.cc @@ -133,10 +133,10 @@ void DCPEncoder::video (shared_ptr data, DCPTime time) { if (!_film->three_d()) { - if (data->eyes() == EYES_LEFT) { + if (data->eyes() == Eyes::LEFT) { /* Use left-eye images for both eyes... */ - data->set_eyes (EYES_BOTH); - } else if (data->eyes() == EYES_RIGHT) { + data->set_eyes (Eyes::BOTH); + } else if (data->eyes() == Eyes::RIGHT) { /* ...and discard the right */ return; } @@ -158,7 +158,7 @@ DCPEncoder::audio (shared_ptr data, DCPTime time) void DCPEncoder::text (PlayerText data, TextType type, optional track, DCPTimePeriod period) { - if (type == TEXT_CLOSED_CAPTION || _non_burnt_subtitles) { + if (type == TextType::CLOSED_CAPTION || _non_burnt_subtitles) { _writer->write (data, type, track, period); } } -- cgit v1.2.3