summaryrefslogtreecommitdiff
path: root/src/lib/transcoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-11 14:24:52 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-11 14:24:52 +0100
commit164bf3eaae49f654d609c747850b3f564fa20102 (patch)
tree1718ee61279459723c6925d5f3a0b20e993366bc /src/lib/transcoder.cc
parent94d3807efb3e55cb6a382e3e5ad0ae1bed68e65c (diff)
Try to fix lack of subs in the viewer after they are turned on.
Diffstat (limited to 'src/lib/transcoder.cc')
-rw-r--r--src/lib/transcoder.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc
index 6744e9193..e0e127d33 100644
--- a/src/lib/transcoder.cc
+++ b/src/lib/transcoder.cc
@@ -56,6 +56,10 @@ Transcoder::Transcoder (shared_ptr<Film> f, shared_ptr<Job> j)
_gain.reset (new Gain (f->log(), f->audio_gain()));
}
+ if (!f->with_subtitles ()) {
+ _player->disable_subtitles ();
+ }
+
if (_matcher) {
_player->connect_video (_matcher);
_matcher->connect_video (_encoder);