Fix missing subtitles in the player when they are added with a VF.
authorCarl Hetherington <cth@carlh.net>
Sun, 18 Feb 2018 00:34:01 +0000 (00:34 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 18 Feb 2018 00:34:48 +0000 (00:34 +0000)
src/tools/dcpomatic_player.cc

index c59d925236c4538bbf9c5f1701e43e8d3bddedec..3e36b575b2c16cdfe09713786636d744913882ee 100644 (file)
@@ -311,6 +311,10 @@ private:
                        DCPOMATIC_ASSERT (dcp);
                        dcp->add_ov (wx_to_std(c->GetPath()));
                        dcp->examine (shared_ptr<Job>());
+                       /* Maybe we just gained some subtitles */
+                       if (dcp->subtitle) {
+                               dcp->subtitle->set_use (true);
+                       }
                }
 
                c->Destroy ();