Restore correct setup of fast resampler when the player is set to fast.
[dcpomatic.git] / src / lib / dcp_decoder.cc
index ef40f2ec7311949db871dfcaff8ee4db6ed756c4..59a85e05145aef96010e6d65dcb5d2216e7f33b9 100644 (file)
@@ -50,13 +50,13 @@ using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 using boost::optional;
 
-DCPDecoder::DCPDecoder (shared_ptr<const DCPContent> c, shared_ptr<Log> log)
+DCPDecoder::DCPDecoder (shared_ptr<const DCPContent> c, shared_ptr<Log> log, bool fast)
        : DCP (c)
        , _decode_referenced (false)
 {
        video.reset (new VideoDecoder (this, c, log));
        if (c->audio) {
-               audio.reset (new AudioDecoder (this, c->audio, log));
+               audio.reset (new AudioDecoder (this, c->audio, log, fast));
        }
        if (c->subtitle) {
                subtitle.reset (new SubtitleDecoder (this, c->subtitle, log));