diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-21 02:44:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-21 20:15:14 +0100 |
| commit | 28111007e2e6fd62f5810be780706ae1618bd33f (patch) | |
| tree | d99fe830ba961b174d3f024d2b5671a9821ed8a9 /src/lib/dcp_examiner.cc | |
| parent | c7d77490382d6ddb625340c05b57487cde244f96 (diff) | |
Adapt for libdcp use of enum class.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
| -rw-r--r-- | src/lib/dcp_examiner.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index d0c3d1021..5ea568359 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -225,14 +225,14 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant) /* Check that we can read the first picture, sound and subtitle frames of each reel */ try { for (auto i: cpl->reels()) { - shared_ptr<dcp::PictureAsset> pic = i->main_picture()->asset (); - shared_ptr<dcp::MonoPictureAsset> mono = dynamic_pointer_cast<dcp::MonoPictureAsset> (pic); - shared_ptr<dcp::StereoPictureAsset> stereo = dynamic_pointer_cast<dcp::StereoPictureAsset> (pic); + auto pic = i->main_picture()->asset (); + auto mono = dynamic_pointer_cast<dcp::MonoPictureAsset> (pic); + auto stereo = dynamic_pointer_cast<dcp::StereoPictureAsset> (pic); if (mono) { mono->start_read()->get_frame(0)->xyz_image (); } else { - stereo->start_read()->get_frame(0)->xyz_image (dcp::EYE_LEFT); + stereo->start_read()->get_frame(0)->xyz_image(dcp::Eye::LEFT); } if (i->main_sound()) { |
