const fix.
authorCarl Hetherington <cth@carlh.net>
Tue, 21 Feb 2017 23:29:08 +0000 (23:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Wed, 19 Apr 2017 22:04:32 +0000 (23:04 +0100)
src/lib/audio_decoder.cc
src/lib/audio_decoder.h

index 5a33716f4fe775622e2864a7ce97192c281ed84a..31f713fda3a3b743ec42b90133563af4d1192b38 100644 (file)
@@ -33,7 +33,7 @@ using std::map;
 using boost::shared_ptr;
 using boost::optional;
 
-AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<AudioContent> content, shared_ptr<Log> log)
+AudioDecoder::AudioDecoder (Decoder* parent, shared_ptr<const AudioContent> content, shared_ptr<Log> log)
        : DecoderPart (parent, log)
 {
        BOOST_FOREACH (AudioStreamPtr i, content->streams ()) {
index a4b74e2eae011cec3379e4520137504f381fdb6d..25d858681eea36e6e4ed0f6605526f88a37c49d2 100644 (file)
@@ -43,7 +43,7 @@ class Log;
 class AudioDecoder : public boost::enable_shared_from_this<AudioDecoder>, public DecoderPart
 {
 public:
-       AudioDecoder (Decoder* parent, boost::shared_ptr<AudioContent> content, boost::shared_ptr<Log> log);
+       AudioDecoder (Decoder* parent, boost::shared_ptr<const AudioContent> content, boost::shared_ptr<Log> log);
 
        ContentTime position () const;
        void emit (AudioStreamPtr stream, boost::shared_ptr<const AudioBuffers>, ContentTime);