X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Faudio_decoder.cc;h=fa9fe9711f2cf91692b1d3d140b7a799900240ed;hp=8c395cb89a0074aa171c3eb06b39c6bc4c00d508;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 8c395cb89..fa9fe9711 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -23,6 +23,7 @@ #include "audio_decoder_stream.h" #include "audio_content.h" #include +#include #include #include "i18n.h" @@ -30,13 +31,14 @@ using std::cout; using std::map; using boost::shared_ptr; +using boost::make_shared; AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr content, bool fast, shared_ptr log) : _ignore (false) , _fast (fast) { BOOST_FOREACH (AudioStreamPtr i, content->streams ()) { - _streams[i] = shared_ptr (new AudioDecoderStream (content, i, parent, fast, log)); + _streams[i] = make_shared (content, i, parent, fast, log); } }