Basics of splitting up Decoder tree like Content.
[dcpomatic.git] / src / lib / audio_decoder.cc
index 705fdbef1cf32ecaca36cac604bfddcd83b3317f..7ceb9680bf95b3be487ed6d3dd42e7ce4ece58b3 100644 (file)
@@ -30,13 +30,13 @@ using std::cout;
 using std::map;
 using boost::shared_ptr;
 
-AudioDecoder::AudioDecoder (shared_ptr<const AudioContent> content, bool fast, shared_ptr<Log> log)
+AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> content, bool fast, shared_ptr<Log> log)
        : _audio_content (content)
        , _ignore_audio (false)
        , _fast (fast)
 {
        BOOST_FOREACH (AudioStreamPtr i, content->streams ()) {
-               _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (_audio_content, i, this, log));
+               _streams[i] = shared_ptr<AudioDecoderStream> (new AudioDecoderStream (_audio_content, i, parent, log));
        }
 }