Fix 3D DCP handling in the player.
authorCarl Hetherington <cth@carlh.net>
Tue, 10 Apr 2018 23:29:58 +0000 (00:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 10 Apr 2018 23:29:58 +0000 (00:29 +0100)
ChangeLog
src/lib/dcp_content.h
src/tools/dcpomatic_player.cc

index 4a6285b..d968148 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2018-04-11  Carl Hetherington  <cth@carlh.net>
+
+       * Fix 3D DCP handling in the player.
+
 2018-04-10  Carl Hetherington  <cth@carlh.net>
 
        * Fix disappearing subtitles when they are added from text files
index 371ec7f..6464262 100644 (file)
@@ -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;
 
index d7e4708..9b45aff 100644 (file)
@@ -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);