From b6d292349cbe43a97db7d7314a4fe3c0c5cb8566 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 11 Apr 2018 00:29:58 +0100 Subject: Fix 3D DCP handling in the player. --- src/lib/dcp_content.h | 5 +++++ src/tools/dcpomatic_player.cc | 4 ++++ 2 files changed, 9 insertions(+) (limited to 'src') diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 371ec7fff..64642623f 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -129,6 +129,11 @@ public: return _name; } + bool three_d () const { + boost::mutex::scoped_lock lm (_mutex); + return _three_d; + } + private: friend class reels_test5; diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc index d7e47081c..9b45affd2 100644 --- a/src/tools/dcpomatic_player.cc +++ b/src/tools/dcpomatic_player.cc @@ -217,6 +217,10 @@ public: dcp->subtitle->set_use (true); } + if (dcp->three_d()) { + _film->set_three_d (true); + } + Ratio const * r = Ratio::nearest_from_ratio(dcp->video->size().ratio()); if (r) { _film->set_container(r); -- cgit v1.2.3